diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2002-08-02 04:18:16 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2002-08-02 04:18:16 +0000 |
commit | 56da7207c1b5d008ead2df641f3008c25568f3ca (patch) | |
tree | c63ec9dce2bc93a6a52925534a75b6d065be7679 /gcc/c-common.c | |
parent | 88c3865996f3be69203664a3889ec54bbeeb8c04 (diff) | |
download | gcc-56da7207c1b5d008ead2df641f3008c25568f3ca.zip gcc-56da7207c1b5d008ead2df641f3008c25568f3ca.tar.gz gcc-56da7207c1b5d008ead2df641f3008c25568f3ca.tar.bz2 |
c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
* c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
* cppinit.c (cpp_post_options): Likewise.
* cppexp.c (cpp_classify_number): Suppress -Wtraditional
warning about 'LL' suffix (but not 'ULL' etc) when
-Wno-long-long is in effect.
* cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
Check for failing time()/localtime(), issue a warning, and
make __TIME__ and __DATE__ expand to fallback strings.
* doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
and __TIME__ when the date and time cannot be determined.
From-SVN: r55969
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 4151273..363e72f 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. */ |