X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=main.c;h=7d679f6990521bab247a825ece8e37400219afe4;hb=4e6e0e20d15e96eaf0527aac168e393dea72eced;hp=53d85cc62606d2094468356fff0f8640654a671b;hpb=ae8343fabe5b04de6ce60ceccfe32119a40b69cf;p=cparser diff --git a/main.c b/main.c index 53d85cc..7d679f6 100644 --- a/main.c +++ b/main.c @@ -628,6 +628,7 @@ int main(int argc, char **argv) || strcmp(opt, "unroll-loops") == 0 || strcmp(opt, "expensive-optimizations") == 0 || strcmp(opt, "no-common") == 0 + || strcmp(opt, "PIC") == 0 || strncmp(opt, "align-loops=", sizeof("align-loops=")-1) == 0 || strncmp(opt, "align-jumps=", sizeof("align-jumps=")-1) == 0 || strncmp(opt, "align-functions=", sizeof("align-functions=")-1) == 0) { @@ -738,7 +739,8 @@ int main(int argc, char **argv) } else if(strcmp(option, "pg") == 0) { set_be_option("gprof"); add_flag(&ldflags_obst, "-pg"); - } else if(strcmp(option, "pedantic") == 0) { + } else if(strcmp(option, "pedantic") == 0 + || strcmp(option, "ansi") == 0) { fprintf(stderr, "warning: ignoring gcc option '%s'\n", arg); } else if(strcmp(option, "shared") == 0) { add_flag(&ldflags_obst, "-shared");