From 4ef0e8c66e3373a5fd824864735185d1eb28a13d Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 20 Dec 2012 16:04:10 +0100 Subject: [PATCH] -g sets opts.g and -debug causes blocks to be labeled --- ast.c | 2 +- main.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ast.c b/ast.c index 51104b3..5cb8651 100644 --- a/ast.c +++ b/ast.c @@ -1049,7 +1049,7 @@ const char* ast_function_label(ast_function *self, const char *prefix) size_t len; char *from; - if (!opts.dump && !opts.dumpfin) + if (!opts.dump && !opts.dumpfin && !opts.debug) return NULL; id = (self->labelcount++); diff --git a/main.c b/main.c index 00d3bc8..6a0fe16 100644 --- a/main.c +++ b/main.c @@ -266,6 +266,7 @@ static bool options_parse(int argc, char **argv) { /* debug turns on -flno */ case 'g': opts_setflag("LNO", true); + opts.g = true; break; case 'D': -- 2.39.2