diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2002-05-29 17:15:42 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-05-29 17:15:42 +0000 |
commit | cd7ab83f2d607e6be282ff65408d4efd5d1b35f1 (patch) | |
tree | cb54dc5c6bb9ba60a0d20a46d9816c704bcb8afa /gcc/testsuite/gcc.dg/cpp/c94-pedantic.c | |
parent | 61a8515c94ea4a9524e708d7a6e2a172d7cbd48e (diff) | |
download | gcc-cd7ab83f2d607e6be282ff65408d4efd5d1b35f1.zip gcc-cd7ab83f2d607e6be282ff65408d4efd5d1b35f1.tar.gz gcc-cd7ab83f2d607e6be282ff65408d4efd5d1b35f1.tar.bz2 |
cppexp.c (cpp_num): Move to cpplib.h.
2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
Zack Weinberg <zack@codesourcery.com>
* cppexp.c (cpp_num): Move to cpplib.h.
(CPP_ERROR): Remove.
(interpret_float_suffix, interpret_int_suffix): New.
(struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
(cpp_classify_number, cpp_interpret_integer): New.
(interpret_number): Remove.
(eval_token): Update to use new routines.
* cpphash.h (cpp_num_part): Move to cpplib.h.
* cppinit.c (cpp_post_options): Set warn_long_long.
* cpplib.h (struct cpp_options): Add warn_long_long.
(cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
cpp_interpret_integer): New.
testsuite:
* gcc.dg/cpp/c++98-pedantic.c, gcc.dg/cpp/c89-pedantic.c,
gcc.dg/cpp/c94-pedantic.c, gcc.dg/cpp/gnuc89-pedantic.c,
gcc.dg/cpp/if-1.c: Update for modified diagnostics.
Co-Authored-By: Zack Weinberg <zack@codesourcery.com>
From-SVN: r54007
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/c94-pedantic.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/c94-pedantic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/c94-pedantic.c b/gcc/testsuite/gcc.dg/cpp/c94-pedantic.c index 589d23c..1c12164 100644 --- a/gcc/testsuite/gcc.dg/cpp/c94-pedantic.c +++ b/gcc/testsuite/gcc.dg/cpp/c94-pedantic.c @@ -6,5 +6,5 @@ /* This file is for testing the preprocessor in -std=iso9899:199409 -pedantic mode. Neil Booth, 2 Dec 2000. */ -#if 1LL /* { dg-warning "too many" } */ +#if 1LL /* { dg-warning "long long" } */ #endif |