c-common.c (c_common_init): Set up CPP arithmetic.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Sun, 5 May 2002 17:05:09 +0000 (17:05 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sun, 5 May 2002 17:05:09 +0000 (17:05 +0000)
commit2443d4e110e88050c438b4db7cba7b47dfb90893
tree97978ba189f956d7357a86c98b15c1b1b5adaa02
parent791a949fb9c633016bdb00f954979c53b0e75e9a
c-common.c (c_common_init): Set up CPP arithmetic.

* c-common.c (c_common_init): Set up CPP arithmetic.
* cppinit.c (cpp_create_reader): Default CPP arithmetic to
something reasonable for the host.
(sanity_checks): Add checks.
(cpp_read_main_file): Call sanity_checks() from here...
(cpp_post_options): ... not here.
* cpplex.c (cpp_interpret_charconst): Get max_chars right.
* cpplib.h (struct cpp_options): New member int_precision.
testsuite:
* gcc.dg/cpp/charconst.c: Update tests.

From-SVN: r53186
gcc/ChangeLog
gcc/c-common.c
gcc/cppinit.c
gcc/cpplex.c
gcc/cpplib.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/charconst.c