From: Wolfgang Bumiller Date: Thu, 20 Dec 2012 15:04:10 +0000 (+0100) Subject: -g sets opts.g and -debug causes blocks to be labeled X-Git-Tag: 0.1.9~9 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4ef0e8c66e3373a5fd824864735185d1eb28a13d;p=xonotic%2Fgmqcc.git -g sets opts.g and -debug causes blocks to be labeled --- 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':