(default_include): Put TOOL_INCLUDE_DIR after
authorRichard Stallman <rms@gnu.org>
Fri, 21 May 1993 23:14:00 +0000 (23:14 +0000)
committerRichard Stallman <rms@gnu.org>
Fri, 21 May 1993 23:14:00 +0000 (23:14 +0000)
LOCAL_INCLUDE_DIR in non-cross case.

From-SVN: r4534

gcc/cccp.c

index 48e3bf45f8c06b3fe7d073702162e29407404c39..896a5878857fb1ac1985590d7977fa325f86743c 100644 (file)
@@ -559,12 +559,12 @@ static struct default_include { char *fname; int cplusplus; } include_defaults_a
     /* This is another place that the target system's headers might be.  */
     { TOOL_INCLUDE_DIR, 0},
 #else /* not CROSS_COMPILE */
-    /* Until we are really clear on what people will use this dir for
-       in a native compiler, it's not clear where in the order it belongs.  */
-    { TOOL_INCLUDE_DIR, 0},
     /* This should be /use/local/include and should come before
        the fixincludes-fixed header files.  */
     { LOCAL_INCLUDE_DIR, 0},
+    /* This is here ahead of GCC_INCLUDE_DIR because assert.h goes here.
+       Likewise, behind LOCAL_INCLUDE_DIR, where glibc puts its assert.h.  */
+    { TOOL_INCLUDE_DIR, 0},
     /* This is the dir for fixincludes.  Put it just before
        the files that we fix.  */
     { GCC_INCLUDE_DIR, 0},