cpp.texi: Update for handling of charconsts.
commitf8710242d38de963d4d8204af1058cef8c05472b
authorNeil Booth <neil@daikokuya.demon.co.uk>
Wed, 23 May 2001 22:50:28 +0000 (23 22:50 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Wed, 23 May 2001 22:50:28 +0000 (23 22:50 +0000)
tree6ccc83b80dfb184aeb83b9ad4fb992c103b4b1b0
parent75f3e3c8d6d152e9876857a0e0b3b717115dede9
cpp.texi: Update for handling of charconsts.

* cpp.texi: Update for handling of charconsts.
* 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.

From-SVN: r42514
gcc/ChangeLog
gcc/cpp.texi
gcc/cpplex.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/charconst.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/escape-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/escape-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/escape.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/ucs.c [new file with mode: 0644]