This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
cpplib: File change callback for #pragma GCC system_header
- To: gcc-patches at gcc dot gnu dot org
- Subject: cpplib: File change callback for #pragma GCC system_header
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Fri, 16 Feb 2001 07:36:15 +0000
This fixes problems that Jason has been seeing, as discussed on the
GCC lists.
I'm applying this to head and branch - it's straightforward and fixes
user-visible issues.
Neil.
* cppfiles.c (_cpp_make_system_header): Generate a file
change callback.
Index: cppfiles.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cppfiles.c,v
retrieving revision 1.101
diff -u -p -r1.101 cppfiles.c
--- cppfiles.c 2001/01/24 18:44:40 1.101
+++ cppfiles.c 2001/02/16 07:32:51
@@ -530,6 +530,8 @@ cpp_make_system_header (pfile, syshdr, e
if (syshdr)
flags = 1 + (externc != 0);
pfile->buffer->sysp = flags;
+ _cpp_do_file_change (pfile, FC_RENAME, pfile->buffer->nominal_fname,
+ pfile->buffer->lineno);
}
/* Report on all files that might benefit from a multiple include guard.