This is the mail archive of the gcc-bugs@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]

Patch: #pragma system_header


On Mon, Jul 17, 2000 at 12:20:00PM -0700, Zack Weinberg wrote:
> On Mon, Jul 17, 2000 at 12:01:58PM -0700, H . J . Lu wrote:
> > With gcc in CVS on 20000716,
> > 
> > # work/build/gnu/bin/gcc-3.0-libstdc++v3/gcc/testsuite/../g++ -B/work/build/gnu/bin/gcc-3.0-libstdc++v3/gcc/testsuite/../  -E -I.  -ansi -pedantic-errors t.cc > /dev/null
> > In file included from t.cc:1:
> > t.h:2:2: ISO C does not allow #include_next
> 
> I am looking into this bug right now.  Please be patient.
> 

This patch seems to work for me. I don't if

{"dependency", do_pragma_dependency},

should be copied to top_pragmas also.


> In the future, please simply include the files of your example into
> the body of the message, and mark their boundaries, like so:
> 

Sure.


H.J.
--
Index: cpplib.c
===================================================================
RCS file: /work/cvs/gnu/egcs/gcc/cpplib.c,v
retrieving revision 1.1.1.52
diff -u -p -r1.1.1.52 cpplib.c
--- cpplib.c	2000/07/17 02:40:25	1.1.1.52
+++ cpplib.c	2000/07/17 19:29:26
@@ -681,6 +681,7 @@ static const struct pragma_entry top_pra
   {"once", do_pragma_once},
   {"implementation", do_pragma_implementation},
   {"poison", do_pragma_poison},
+  {"system_header", do_pragma_system_header},
   {"GCC", do_pragma_gcc},
   {NULL, NULL}
 };

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