diff options
author | Tom Tromey <tromey@redhat.com> | 2008-05-21 21:52:57 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2008-05-21 21:52:57 +0000 |
commit | 5d6342ebc23344e8168b1589589b68f7b6781f66 (patch) | |
tree | a31b212aa429bae765ecae0b494fda6a486c56a5 /libcpp/internal.h | |
parent | 0fda18dd70beee1713ba7b2bd8f04222fbe535bb (diff) | |
download | gcc-5d6342ebc23344e8168b1589589b68f7b6781f66.zip gcc-5d6342ebc23344e8168b1589589b68f7b6781f66.tar.gz gcc-5d6342ebc23344e8168b1589589b68f7b6781f66.tar.bz2 |
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
Diffstat (limited to 'libcpp/internal.h')
-rw-r--r-- | libcpp/internal.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libcpp/internal.h b/libcpp/internal.h index 860fe2e..187b311 100644 --- a/libcpp/internal.h +++ b/libcpp/internal.h @@ -518,10 +518,6 @@ cpp_in_primary_file (cpp_reader *pfile) return pfile->line_table->depth == 1; } -/* In errors.c */ -extern int _cpp_begin_message (cpp_reader *, int, - source_location, unsigned int); - /* In macro.c */ extern void _cpp_free_definition (cpp_hashnode *); extern bool _cpp_create_definition (cpp_reader *, cpp_hashnode *); |