diff options
author | Tom Tromey <tromey@redhat.com> | 2007-11-12 00:38:48 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2007-11-12 00:38:48 +0000 |
commit | f1e207107a8fca7d0f8792502b576688ede5df58 (patch) | |
tree | 3f463456ccd4e5d3927d4137b115dbd7bb507c51 /libcpp/include/cpplib.h | |
parent | b131ad7c3db37bb79f21f5f6532447d0e030acaa (diff) | |
download | gcc-f1e207107a8fca7d0f8792502b576688ede5df58.zip gcc-f1e207107a8fca7d0f8792502b576688ede5df58.tar.gz gcc-f1e207107a8fca7d0f8792502b576688ede5df58.tar.bz2 |
re PR c++/17577 (#pragma implementation no longer diagnoses use after file to which it applies)
gcc/cp
PR c++/17577:
* lex.c (handle_pragma_implementation): Use cpp_included_before.
gcc/testsuite
PR c++/17577:
* g++.dg/ext/pr17577.h: New file.
* g++.dg/ext/pr17577.C: New file.
libcpp
PR c++/17557:
* include/cpplib.h (cpp_included_before): Declare.
* files.c (struct file_hash_entry) <location>: New field.
(_cpp_find_file): Initialize new field.
(make_cpp_dir): Likewise.
(cpp_included_before): New function.
From-SVN: r130093
Diffstat (limited to 'libcpp/include/cpplib.h')
-rw-r--r-- | libcpp/include/cpplib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h index ff13cd6..01e982f 100644 --- a/libcpp/include/cpplib.h +++ b/libcpp/include/cpplib.h @@ -853,6 +853,7 @@ extern unsigned char *cpp_quote_string (unsigned char *, const unsigned char *, /* In cppfiles.c */ extern bool cpp_included (cpp_reader *, const char *); +extern bool cpp_included_before (cpp_reader *, const char *, source_location); extern void cpp_make_system_header (cpp_reader *, int, int); extern bool cpp_push_include (cpp_reader *, const char *); extern void cpp_change_file (cpp_reader *, enum lc_reason, const char *); |