This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

cpplib: File change callback for #pragma GCC system_header


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]