diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-02 04:18:16 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-02 04:18:16 +0000 |
commit | 3385506fe73e94274312eb1696ff3b965bdd368b (patch) | |
tree | c63ec9dce2bc93a6a52925534a75b6d065be7679 /gcc/cppinit.c | |
parent | 9ab9d8af329b4f99b807b65efb8fd4fb4246549d (diff) | |
download | gcc-3385506fe73e94274312eb1696ff3b965bdd368b.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55969 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r-- | gcc/cppinit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 212f1a46308..03f04c1a5d6 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -1787,8 +1787,9 @@ cpp_post_options (pfile) /* The compiler front ends override this, but I think this is the appropriate setting for the library. */ - CPP_OPTION (pfile, warn_long_long) = (CPP_OPTION (pfile, pedantic) - && !CPP_OPTION (pfile, c99)); + CPP_OPTION (pfile, warn_long_long) + = ((CPP_OPTION (pfile, pedantic) && !CPP_OPTION (pfile, c99)) + || CPP_OPTION (pfile, warn_traditional)); /* Permanently disable macro expansion if we are rescanning preprocessed text. Read preprocesed source in ISO mode. */ |