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]

[RFA] Use "-idirafter /usr/include/w32api" in cygwin specs


174 warnings in stage 3 of a bootstrap on cygwin come from header files in
/usr/include/w32api.  This patch eliminates them by make the files system
headers (using -dirafter in place of -I).  It also reverts the include
directory search path order to that of gcc-2.95, with /usr/include/w32api
last.  

Bootstrapped on cygwin.  Please consider for mainline and 3.0 branch.

2001-03-10	David Billinghurst (David.Billinghurst@riotinto.com)

	* config/i386/cygwin.h: Use -idirafter for /usr/include/w32api  


Index: gcc/config/i386/cygwin.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/cygwin.h,v
retrieving revision 1.33
diff -u -r1.33 cygwin.h
--- cygwin.h    2001/02/05 19:31:06     1.33
+++ cygwin.h    2001/03/10 12:14:15
@@ -83,13 +83,13 @@

 #ifdef CROSS_COMPILE
 #define CYGWIN_INCLUDES "-idirafter " CYGWIN_CROSS_DIR "/include"
-#define CYGWIN_W32API "-I" CYGWIN_CROSS_DIR "/include/w32api"
+#define CYGWIN_W32API "-idirafter " CYGWIN_CROSS_DIR "/include/w32api"
 #define CYGWIN_LIB CYGWIN_CROSS_DIR "/lib"
 #define MINGW_LIBS "-L" CYGWIN_CROSS_DIR "/lib/mingw"
-#define MINGW_INCLUDES "-I" CYGWIN_CROSS_DIR "/include/mingw"
+#define MINGW_INCLUDES "-idirafter " CYGWIN_CROSS_DIR "/include/mingw"
 #else
 #define CYGWIN_INCLUDES "-isystem /usr/local/include -idirafter
/usr/include"
-#define CYGWIN_W32API "-I/usr/include/w32api"
+#define CYGWIN_W32API "-idirafter /usr/include/w32api"
 #define CYGWIN_LIB "/usr/lib"
 #define MINGW_LIBS "-L/usr/local/lib/mingw -L/usr/lib/mingw"
 #define MINGW_INCLUDES "-isystem /usr/local/include/mingw -idirafter
/usr/include/mingw"


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