aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-01-18 20:30:49 +0000
committerRichard Stallman <rms@gnu.org>1993-01-18 20:30:49 +0000
commitee40befe328bec580789418de44c8db43281ea7b (patch)
tree763eb046a259fb854f0efb94deb93b1b016f4df8 /gcc
parent428e0ca8c87bccd963bbe32d8a755c831951fb29 (diff)
downloadgcc-ee40befe328bec580789418de44c8db43281ea7b.zip
gcc-ee40befe328bec580789418de44c8db43281ea7b.tar.gz
gcc-ee40befe328bec580789418de44c8db43281ea7b.tar.bz2
(include_defaults): Do use GCC_INCLUDE_DIR for cross compiler.
Move TOOL_INCLUDE_DIR later if cross. From-SVN: r3269
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cccp.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index aa04291..54fb1b8 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -540,12 +540,21 @@ static struct default_include { char *fname; int cplusplus; } include_defaults_a
= {
/* Pick up GNU C++ specific include files. */
{ GPLUSPLUS_INCLUDE_DIR, 1},
- { TOOL_INCLUDE_DIR, 0},
#ifdef CROSS_COMPILE
+ /* This is the dir for fixincludes. Put it just before
+ the files that we fix. */
+ { GCC_INCLUDE_DIR, 0},
/* For cross-compilation, this dir name is generated
automatically in Makefile.in. */
{ CROSS_INCLUDE_DIR, 0 },
+ /* 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 the dir for fixincludes. Put it just before
the files that we fix. */