re PR preprocessor/27777 (Bad diagnostic emission when #error contains a trigraph)
authorTom Tromey <tromey@redhat.com>
Wed, 21 May 2008 21:52:57 +0000 (21:52 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 21 May 2008 21:52:57 +0000 (21:52 +0000)
commit5d6342ebc23344e8168b1589589b68f7b6781f66
treea31b212aa429bae765ecae0b494fda6a486c56a5
parent0fda18dd70beee1713ba7b2bd8f04222fbe535bb
re PR preprocessor/27777 (Bad diagnostic emission when #error contains a trigraph)

gcc/testsuite
PR preprocessor/27777:
* gcc.dg/cpp/pr27777.c: New file.
libcpp
PR preprocessor/27777:
* lex.c (cpp_output_line_to_string): New function.
* internal.h (_cpp_begin_message): Don't declare.
* errors.c (_cpp_begin_message): Now static.
* include/cpplib.h (cpp_output_line_to_string): Declare.
* directives.c (do_diagnostic): Rewrote.  Use
cpp_output_line_to_string.  Don't use _cpp_begin_message.

From-SVN: r135740
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/pr27777.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/directives.c
libcpp/errors.c
libcpp/include/cpplib.h
libcpp/internal.h
libcpp/lex.c