diff options
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 415127317f0..363e72f949d 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -4945,8 +4945,9 @@ c_common_init (filename) options->stdc_0_in_system_headers = STDC_0_IN_SYSTEM_HEADERS; /* We want -Wno-long-long to override -pedantic -std=non-c99 - whatever the ordering. */ - options->warn_long_long = warn_long_long && !flag_isoc99 && pedantic; + and/or -Wtraditional, whatever the ordering. */ + options->warn_long_long + = warn_long_long && ((!flag_isoc99 && pedantic) || warn_traditional); /* Register preprocessor built-ins before calls to cpp_main_file. */ |