http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53063
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-04-13 Ever confirmed|0 |1 --- Comment #9 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- In order to fully fix this, we would need to handle also CPP options, in order to auto-generate this code: /* Wlong-long is disabled by default. It is enabled by: [-Wpedantic | -Wtraditional] -std=[gnu|c]++98 ; or [-Wpedantic | -Wtraditional] -std=non-c99 . Either -Wlong-long or -Wno-long-long override any other settings. */ if (warn_long_long == -1) warn_long_long = ((pedantic || warn_traditional) && (c_dialect_cxx () ? cxx_dialect == cxx98 : !flag_isoc99)); cpp_opts->cpp_warn_long_long = warn_long_long; /* Similarly with -Wno-variadic-macros. No check for c99 here, since this also turns off warnings about GCCs extension. */ cpp_opts->warn_variadic_macros = cpp_warn_variadic_macros && (pedantic || warn_traditional); There also a few options in c_common_post_options that have not been converted to the new mechanism yet.