aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.h
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2002-06-02 19:37:34 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-06-02 19:37:34 +0000
commitceeedfc11a23c9223095ef4eace51f29fb036aa9 (patch)
tree8660e3e7cbb02e35bffcba5d9bb626eaddc20430 /gcc/cpplib.h
parent27e511e0d56e4968abd1549b50b62071f22a224f (diff)
downloadgcc-ceeedfc11a23c9223095ef4eace51f29fb036aa9.zip
gcc-ceeedfc11a23c9223095ef4eace51f29fb036aa9.tar.gz
gcc-ceeedfc11a23c9223095ef4eace51f29fb036aa9.tar.bz2
c-common.c (c_common_init): Override cpplib's default warn_long_long setting.
* 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. From-SVN: r54180
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r--gcc/cpplib.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h
index 79fff2b..672f3e8 100644
--- a/gcc/cpplib.h
+++ b/gcc/cpplib.h
@@ -625,6 +625,10 @@ extern unsigned cpp_classify_number PARAMS ((cpp_reader *, const cpp_token *));
extern cpp_num cpp_interpret_integer PARAMS ((cpp_reader *, const cpp_token *,
unsigned int type));
+/* Sign extend a number, with PRECISION significant bits and all
+ others assumed clear, to fill out a cpp_num structure. */
+cpp_num cpp_num_sign_extend PARAMS ((cpp_num, size_t));
+
/* Diagnostic levels. To get a dianostic without associating a
position in the translation unit with it, use cpp_error_with_line
with a line number of zero. */