X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=main.c;h=a529a0364ea6b3dc2f5466628f639d3c47d1bdec;hb=f017f4f5080052f95185056b3af472ab737bc64a;hp=7777ead386dcd967e01ee7c2f974ff793790f0ea;hpb=8ad5569b5a851aeb873b35c7e1e69873d857fab6;p=cparser diff --git a/main.c b/main.c index 7777ead..a529a03 100644 --- a/main.c +++ b/main.c @@ -412,6 +412,8 @@ int main(int argc, char **argv) const char *option = &arg[1]; if(option[0] == 'o') { GET_ARG_AFTER(outname, "-o"); + } else if(option[0] == 'g') { + firm_be_option("stabs=yes"); } else if(SINGLE_OPTION('c')) { mode = CompileAssemble; } else if(SINGLE_OPTION('S')) { @@ -500,7 +502,7 @@ int main(int argc, char **argv) } } else if(strcmp(option, "pedantic") == 0) { fprintf(stderr, "warning: ignoring gcc option '%s'\n", arg); - } else if(option[0] == 'g' || strncmp(option, "std=", 4) == 0) { + } else if(strncmp(option, "std=", 4) == 0) { fprintf(stderr, "warning: ignoring gcc option '%s'\n", arg); } else if (option[0] == '-') { /* double dash option */