diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-02 19:37:34 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-02 19:37:34 +0000 |
commit | f5ec8cb5950aa7471a955979c0aea3019dab2a54 (patch) | |
tree | 8660e3e7cbb02e35bffcba5d9bb626eaddc20430 /gcc/testsuite/gcc.dg/wtr-suffix-1.c | |
parent | c003992af6319067d9c18098740b83fe2b4ee4ca (diff) | |
download | gcc-f5ec8cb5950aa7471a955979c0aea3019dab2a54.tar.gz |
* c-common.c (c_common_init): Override cpplib's default
warn_long_long setting.
* c-lex.c (lex_number): Replace with interpret_integer,
interpret_float, narrowest_unsigned_type and
narrowest_signed_type, taking advantage of the new
cpplib functionality.
* cpperror.c (_cpp_begin_message): If a warning is turned
into an error, avoid printing "warning:".
* cppexp.c (cpp_num_sign_extend): New.
* cppinit.c: Update comment.
* cpplib.h (cpp_num_sign_extend): New.
* tree.h: Update comment.
testsuite:
* gcc.dg/wtr-int-type-1.c, gcc.dg/wtr-suffix-1.c,
gcc.dg/cpp/paste4.c, gcc.dg/cpp/sysmac2.c:
Update for mofified diagnostics.
* gcc.dg/c99-intconst-1.c: No longer fail.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54180 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/wtr-suffix-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/wtr-suffix-1.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/testsuite/gcc.dg/wtr-suffix-1.c b/gcc/testsuite/gcc.dg/wtr-suffix-1.c index 30e4959738d..f6b6300ac1f 100644 --- a/gcc/testsuite/gcc.dg/wtr-suffix-1.c +++ b/gcc/testsuite/gcc.dg/wtr-suffix-1.c @@ -12,13 +12,13 @@ testfunc (void) i = 1L; i = 1l; - i = 1U; /* { dg-warning "traditional C rejects the 'u' suffix" "numeric constant suffix" } */ - i = 1u; /* { dg-warning "traditional C rejects the 'u' suffix" "numeric constant suffix" } */ + i = 1U; /* { dg-warning "traditional C rejects" "numeric constant suffix" } */ + i = 1u; /* { dg-warning "traditional C rejects" "numeric constant suffix" } */ f = 1.0; - f = 1.0F; /* { dg-warning "traditional C rejects the 'f' suffix" "numeric constant suffix" } */ - f = 1.0f; /* { dg-warning "traditional C rejects the 'f' suffix" "numeric constant suffix" } */ - f = 1.0L; /* { dg-warning "traditional C rejects the 'l' suffix" "numeric constant suffix" } */ - f = 1.0l; /* { dg-warning "traditional C rejects the 'l' suffix" "numeric constant suffix" } */ + f = 1.0F; /* { dg-warning "traditional C rejects" "numeric constant suffix" } */ + f = 1.0f; /* { dg-warning "traditional C rejects" "numeric constant suffix" } */ + f = 1.0L; /* { dg-warning "traditional C rejects" "numeric constant suffix" } */ + f = 1.0l; /* { dg-warning "traditional C rejects" "numeric constant suffix" } */ # 24 "sys-header.h" 3 /* We are in system headers now, no -Wtraditional warnings should issue. */ |