This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/27777] Bad diagnostic emission when #error contains a trigraph
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 May 2008 21:53:41 -0000
- Subject: [Bug preprocessor/27777] Bad diagnostic emission when #error contains a trigraph
- References: <bug-27777-6809@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from tromey at gcc dot gnu dot org 2008-05-21 21:53 -------
Subject: Bug 27777
Author: tromey
Date: Wed May 21 21:52:57 2008
New Revision: 135740
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135740
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/cpp/pr27777.c
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/libcpp/ChangeLog
trunk/libcpp/directives.c
trunk/libcpp/errors.c
trunk/libcpp/include/cpplib.h
trunk/libcpp/internal.h
trunk/libcpp/lex.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27777