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]

Re: Results for 2.97 20010212 (experimental) testsuite on i686-pc -cyg win


On Wed, Feb 28, 2001 at 07:57:18PM -0500, DJ Delorie wrote:
>
>The problem is that gcc supresses certain warnings in system headers,
>but -idirafter doesn't mark things as system headers whereas -isystem
>does.  So, if you use (say) "gcc -ansi" it complains about headers in
>/usr/include where it shouldn't.

Hmm.  I wondered about that when I read the description of -idirafter.

Then I don't think using an -isystem is correct either.  This will cause
the include order to be:

 /usr/local/include
 /usr/include
 /usr/lib/gcc-lib/i686-pc-cygwin/2.97/include

rather than

 /usr/local/include
 /usr/lib/gcc-lib/i686-pc-cygwin/2.97/include
 /usr/include

The intent of most of my recent changes to cygwin.h has been to make
gcc search the right directories when given options like -mno-cygwin
or -mno-win32.  In the -mno-cygwin case we never want to search
/usr/include, so it can't just be a STANDARD_INCLUDE_DIR.

cgf


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