diff options
author | Richard Stallman <rms@gnu.org> | 1993-05-25 15:09:21 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-05-25 15:09:21 +0000 |
commit | e1139a5e5a64c9bedf6a3e04dc8dbc826be1f102 (patch) | |
tree | b18a91a83a5b045a3c098a7edca6c88040e24c53 /gcc | |
parent | 46c74083c3f38fd249a651090dc619c60b81eb99 (diff) | |
download | gcc-e1139a5e5a64c9bedf6a3e04dc8dbc826be1f102.zip gcc-e1139a5e5a64c9bedf6a3e04dc8dbc826be1f102.tar.gz gcc-e1139a5e5a64c9bedf6a3e04dc8dbc826be1f102.tar.bz2 |
(include_defaults): Update to match cccp.c.
From-SVN: r4564
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/protoize.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/gcc/protoize.c b/gcc/protoize.c index 729968a..7598ba9 100644 --- a/gcc/protoize.c +++ b/gcc/protoize.c @@ -272,14 +272,25 @@ struct default_include { const char *fname; int cplusplus; } include_defaults[] = { /* Pick up GNU C++ specific include files. */ { GPLUSPLUS_INCLUDE_DIR, 1}, - { GCC_INCLUDE_DIR, 0}, - { 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 */ + /* 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}, /* Some systems have an extra dir of include files. */ #ifdef SYSTEM_INCLUDE_DIR { SYSTEM_INCLUDE_DIR, 0}, |