diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2002-07-20 13:31:56 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-07-20 13:31:56 +0000 |
commit | 68e6527569f6ec0f520a53bcf786103a0f9b3fa4 (patch) | |
tree | 9bd94b5aaf271855796963e66d84694ac7170431 /gcc/cppinit.c | |
parent | 7a5611426087b57133689d61bb4717f9c82f02b2 (diff) | |
download | gcc-68e6527569f6ec0f520a53bcf786103a0f9b3fa4.zip gcc-68e6527569f6ec0f520a53bcf786103a0f9b3fa4.tar.gz gcc-68e6527569f6ec0f520a53bcf786103a0f9b3fa4.tar.bz2 |
cppexp.c (struct op): Add token pointer.
* cppexp.c (struct op): Add token pointer.
(check_promotion, CHECK_PROMOTION): New.
(optab): Update.
(_cpp_parse_expr): Update, use token pointer of struct op.
(reduce): Warn about change of sign owing to promotion.
* cppinit.c (cpp_handle_option): New warning if -Wall.
* cpplib.h (struct cpp_options): New member.
testsuite:
* gcc.dg/cpp/Wsignprom.c: New tests.
From-SVN: r55611
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r-- | gcc/cppinit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index db1314d..72e26ce 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -1672,6 +1672,7 @@ cpp_handle_option (pfile, argc, argv) case OPT_Wall: CPP_OPTION (pfile, warn_trigraphs) = 1; CPP_OPTION (pfile, warn_comments) = 1; + CPP_OPTION (pfile, warn_num_sign_change) = 1; break; case OPT_Wtraditional: |