summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/charconst.c
Commit message (Collapse)AuthorAgeFilesLines
* 2007-06-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>manu2007-06-301-4/+4
| | | | | | | | | | | | | | | | | | | PR testsuite/25241 testsuite/ * gcc.dg/cpp/20000625-1.c: Without dg-options the default is -pedantic-errors, so we should match errors. * gcc.dg/cpp/escape-1.c: Likewise. * gcc.dg/cpp/charconst.c: Empty character constants are errors. * gcc.dg/cpp/direct2.c: This is a mandatory error instead of a warning. * gcc.dg/cpp/endif-pedantic2.c: Use -pedantic-errors to obtain errors instead of warnings. * gcc.dg/cpp/extratokens.c: Use dg-warning instead of dg-error for a pedantic warning. * gcc.dg/cpp/arith-3.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126146 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-common.c (c_common_init): Set up CPP arithmetic.neil2002-05-051-6/+9
| | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53186 138bc75d-0d04-0410-961f-82ee72b054a4
* * cpp.texi: Update for handling of charconsts.neil2001-05-231-0/+33
* cpplex.c (maybe_read_ucs): Don't accept D800-DFFF. Update diagnostics. Skip to the end if the UCS is too short. (cpp_interpret_charconst): Long charconsts issue a warning not an error. * gcc.dg/cpp/charconst.c: New tests. * gcc.dg/cpp/escape.c: New tests. * gcc.dg/cpp/escape-1.c: New tests. * gcc.dg/cpp/escape-2.c: New tests. * gcc.dg/cpp/ucs.c: New tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42514 138bc75d-0d04-0410-961f-82ee72b054a4