Results for 2.97 20010212 (experimental) testsuite on i686-pc -cyg win
Christopher Faylor
cgf@redhat.com
Wed Feb 28 20:25:00 GMT 2001
On Wed, Feb 28, 2001 at 08:11:14PM -0800, Geoff Keating wrote:
>
>DJ Delorie <dj@redhat.com> writes:
>
>> You should be able to do that with specs, but you'd still need to use
>> -isystem to handle the warnings. Or add -isystemafter.
>
>I believe that when we had a similar discussion internally to Red Hat,
>in the context of the host X host patches, we decided that it was
>probably a bug that -idirafter did not consider its headers to be
>system headers.
Would this fix the problem then?
cgf
Index: cppinit.c
===================================================================
RCS file: /cvs/uberbaum/gcc/cppinit.c,v
retrieving revision 1.150
diff -u -p -r1.150 cppinit.c
--- cppinit.c 2001/02/25 09:43:02 1.150
+++ cppinit.c 2001/03/01 04:24:22
@@ -236,7 +236,7 @@ append_include_chain (pfile, dir, path,
new->nlen = len;
new->ino = st.st_ino;
new->dev = st.st_dev;
- if (path == SYSTEM)
+ if (path == SYSTEM || path == AFTER)
#ifdef NO_IMPLICIT_EXTERN_C
new->sysp = 1;
#else
More information about the Gcc-bugs
mailing list