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':