diff options
author | Simon Baldwin <simonb@google.com> | 2011-10-17 23:31:25 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-10-17 23:31:25 +0000 |
commit | 08b2bad275f4cb665ea7659f993735b39777c749 (patch) | |
tree | 2942945008e4ebb8a8f44fa3c239831820413a51 /gcc/config | |
parent | d1947945f50156a3d7304fedba9b90c6edfb1ff0 (diff) | |
download | gcc-08b2bad275f4cb665ea7659f993735b39777c749.zip gcc-08b2bad275f4cb665ea7659f993735b39777c749.tar.gz gcc-08b2bad275f4cb665ea7659f993735b39777c749.tar.bz2 |
configure.ac: Add --with-native-system-header-dir.
* configure.ac: Add --with-native-system-header-dir. Set and
substitute NATIVE_SYSTEM_HEADER_DIR. Use native_system_header
when setting target_header_dir.
* config.gcc: Always set native_system_header_dir.
(*-*-gnu*): Set native_system_header_dir. Don't use t-gnu.
(i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir. Don't
use i386/t-djgpp.
(i[34567]86-*-mingw* | x86_64-*-mingw*): Set
native_system_header_dir.
(spu-*-elf*): Set native_system_header_dir.
* Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
@NATIVE_SYSTEM_HEADER_DIR@.
(PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
* cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
(NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
STANDARD_INCLUDE_COMPONENT.
(cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR. Rename
STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
* system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
STANDARD_INCLUDE_COMPONENT.
* config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
* config/i386/t-mingw-w32: Likewise.
* config/i386/t-mingw-w64: Likewise.
* config/spu/t-spu-elf: Likewise.
* config/i386/t-djgpp: Remove.
* config/t-gnu: Remove.
* config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
(NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
STANDARD_INCLUDE_COMPONENT.
* config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
* config/spu/spu-elf.h: Likewise.
* config/vms/xm-vms.h: Likewise.
* config/gnu.h: Likewise.
* config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
NATIVE_SYSTME_HEADER_COMPONENT.
* doc/install.texi (Configuration): Document
--with-native-system-header-dir. Mention it in the documentation
for --with-sysroot and --with-build-sysroot.
* doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
STANDARD_INCLUDE_DIR. Rename STANDARD_INCLUDE_COMPONENT to
NATIVE_SYSTEM_HEADER_COMPONENT. Rename uses of
STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
* doc/fragments.texi (Target Fragment): Don't document
NATIVE_SYSTEM_HEADER_DIR.
* configure, doc/tm.texi: Rebuild.
Co-Authored-By: Ian Lance Taylor <iant@google.com>
From-SVN: r180114
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/gnu.h | 4 | ||||
-rw-r--r-- | gcc/config/i386/djgpp.h | 4 | ||||
-rw-r--r-- | gcc/config/i386/mingw32.h | 9 | ||||
-rw-r--r-- | gcc/config/i386/t-djgpp | 2 | ||||
-rw-r--r-- | gcc/config/i386/t-mingw-w32 | 3 | ||||
-rw-r--r-- | gcc/config/i386/t-mingw-w64 | 3 | ||||
-rw-r--r-- | gcc/config/i386/t-mingw32 | 3 | ||||
-rw-r--r-- | gcc/config/openbsd.h | 4 | ||||
-rw-r--r-- | gcc/config/spu/spu-elf.h | 5 | ||||
-rw-r--r-- | gcc/config/spu/t-spu-elf | 4 | ||||
-rw-r--r-- | gcc/config/t-gnu | 2 | ||||
-rw-r--r-- | gcc/config/vms/xm-vms.h | 3 |
12 files changed, 5 insertions, 41 deletions
diff --git a/gcc/config/gnu.h b/gcc/config/gnu.h index 8b1d079..dddbcbf 100644 --- a/gcc/config/gnu.h +++ b/gcc/config/gnu.h @@ -28,10 +28,6 @@ along with GCC. If not, see <http://www.gnu.org/licenses/>. #undef LIB_SPEC #define LIB_SPEC "%{pthread:-lpthread} %{pg|p|profile:-lc_p;:-lc}" -/* Standard include directory. In GNU, "/usr" is a four-letter word. */ -#undef STANDARD_INCLUDE_DIR -#define STANDARD_INCLUDE_DIR "/include" - #undef GNU_USER_TARGET_OS_CPP_BUILTINS #define GNU_USER_TARGET_OS_CPP_BUILTINS() \ do { \ diff --git a/gcc/config/i386/djgpp.h b/gcc/config/i386/djgpp.h index d1109a2..c770219 100644 --- a/gcc/config/i386/djgpp.h +++ b/gcc/config/i386/djgpp.h @@ -48,10 +48,6 @@ along with GCC; see the file COPYING3. If not see /* We override default /usr or /usr/local part with /dev/env/DJDIR which */ /* points to actual DJGPP installation directory. */ -/* Standard include directory */ -#undef STANDARD_INCLUDE_DIR -#define STANDARD_INCLUDE_DIR "/dev/env/DJDIR/include/" - /* Search for as.exe and ld.exe in DJGPP's binary directory. */ #undef MD_EXEC_PREFIX #define MD_EXEC_PREFIX "/dev/env/DJDIR/bin/" diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h index 371cb72..d9f10c8 100644 --- a/gcc/config/i386/mingw32.h +++ b/gcc/config/i386/mingw32.h @@ -78,12 +78,8 @@ along with GCC; see the file COPYING3. If not see #define SUB_LINK_ENTRY SUB_LINK_ENTRY32 #endif -/* Override the standard choice of /usr/include as the default prefix - to try when searching for header files. */ -#undef STANDARD_INCLUDE_DIR -#define STANDARD_INCLUDE_DIR "/mingw/include" -#undef STANDARD_INCLUDE_COMPONENT -#define STANDARD_INCLUDE_COMPONENT "MINGW" +#undef NATIVE_SYSTEM_HEADER_COMPONENT +#define NATIVE_SYSTEM_HEADER_COMPONENT "MINGW" #undef CPP_SPEC #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT} " \ @@ -235,4 +231,3 @@ do { \ /* We should find a way to not have to update this manually. */ #define LIBGCJ_SONAME "libgcj" /*LIBGCC_EH_EXTN*/ "-12.dll" - diff --git a/gcc/config/i386/t-djgpp b/gcc/config/i386/t-djgpp deleted file mode 100644 index 7b54b7b..0000000 --- a/gcc/config/i386/t-djgpp +++ /dev/null @@ -1,2 +0,0 @@ -# Location of DJGPP's header directory. -NATIVE_SYSTEM_HEADER_DIR=$(DJDIR)/include diff --git a/gcc/config/i386/t-mingw-w32 b/gcc/config/i386/t-mingw-w32 index a142180..83cee71 100644 --- a/gcc/config/i386/t-mingw-w32 +++ b/gcc/config/i386/t-mingw-w32 @@ -1,6 +1,3 @@ -# Match SYSTEM_INCLUDE_DIR -NATIVE_SYSTEM_HEADER_DIR = /mingw/include - MULTILIB_OPTIONS = m64/m32 MULTILIB_DIRNAMES = 64 32 MULTILIB_OSDIRNAMES = ../lib64 ../lib diff --git a/gcc/config/i386/t-mingw-w64 b/gcc/config/i386/t-mingw-w64 index dbe2d00..041a02f 100644 --- a/gcc/config/i386/t-mingw-w64 +++ b/gcc/config/i386/t-mingw-w64 @@ -1,6 +1,3 @@ -# Match SYSTEM_INCLUDE_DIR -NATIVE_SYSTEM_HEADER_DIR = /mingw/include - MULTILIB_OPTIONS = m64/m32 MULTILIB_DIRNAMES = 64 32 MULTILIB_OSDIRNAMES = ../lib ../lib32 diff --git a/gcc/config/i386/t-mingw32 b/gcc/config/i386/t-mingw32 index a823524..bfdef67 100644 --- a/gcc/config/i386/t-mingw32 +++ b/gcc/config/i386/t-mingw32 @@ -1,5 +1,2 @@ -# Match SYSTEM_INCLUDE_DIR -NATIVE_SYSTEM_HEADER_DIR = /mingw/include - # MinGW-specific parts of LIB_SPEC SHLIB_LC = -lmingwthrd -lmingw32 -lmingwex -lmoldname -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 diff --git a/gcc/config/openbsd.h b/gcc/config/openbsd.h index aa279ed..fad2915 100644 --- a/gcc/config/openbsd.h +++ b/gcc/config/openbsd.h @@ -1,5 +1,5 @@ /* Base configuration file for all OpenBSD targets. - Copyright (C) 1999, 2000, 2004, 2005, 2007, 2009, 2010 + Copyright (C) 1999, 2000, 2004, 2005, 2007, 2009, 2010, 2011 Free Software Foundation, Inc. This file is part of GCC. @@ -59,7 +59,7 @@ along with GCC; see the file COPYING3. If not see { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1 }, \ { GPLUSPLUS_TOOL_INCLUDE_DIR, "G++", 1, 1 }, \ { GPLUSPLUS_BACKWARD_INCLUDE_DIR, "G++", 1, 1 }, \ - { STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT, 0, 0 }, \ + { NATIVE_SYSTEM_HEADER_DIR, NATIVE_SYSTEM_HEADER_COMPONENT, 0, 0 }, \ { 0, 0, 0, 0 } \ } diff --git a/gcc/config/spu/spu-elf.h b/gcc/config/spu/spu-elf.h index 818c391..146bcb2 100644 --- a/gcc/config/spu/spu-elf.h +++ b/gcc/config/spu/spu-elf.h @@ -35,10 +35,6 @@ #undef STANDARD_STARTFILE_PREFIX_2 #define STANDARD_STARTFILE_PREFIX_2 "" -/* Use "/include" instead of "/usr/include". */ -#undef STANDARD_INCLUDE_DIR -#define STANDARD_INCLUDE_DIR "/include" - /* We do not provide any "/usr/local/include" directory on SPU. */ #undef LOCAL_INCLUDE_DIR @@ -77,4 +73,3 @@ mcache-size=16 :-lgcc_cache16k; \ mcache-size=8 :-lgcc_cache8k; \ :-lgcc_cache64k}" - diff --git a/gcc/config/spu/t-spu-elf b/gcc/config/spu/t-spu-elf index 3f95101..b48106e 100644 --- a/gcc/config/spu/t-spu-elf +++ b/gcc/config/spu/t-spu-elf @@ -15,10 +15,6 @@ # along with GCC; see the file COPYING3. If not see # <http://www.gnu.org/licenses/>. -# Define system directory to match STANDARD_INCLUDE_DIR in spu-elf.h, -# allowing combined SPU/PPU sysroot builds. -NATIVE_SYSTEM_HEADER_DIR = /include - # Suppress building libgcc1.a LIBGCC1 = CROSS_LIBGCC1 = diff --git a/gcc/config/t-gnu b/gcc/config/t-gnu deleted file mode 100644 index 7be5d00..0000000 --- a/gcc/config/t-gnu +++ /dev/null @@ -1,2 +0,0 @@ -# In GNU, "/usr" is a four-letter word. -NATIVE_SYSTEM_HEADER_DIR = /include diff --git a/gcc/config/vms/xm-vms.h b/gcc/config/vms/xm-vms.h index 7907f92..816935b 100644 --- a/gcc/config/vms/xm-vms.h +++ b/gcc/config/vms/xm-vms.h @@ -1,6 +1,6 @@ /* Configuration for GCC for hosting on VMS using a Unix style C library. - Copyright (C) 1996, 1997, 2001, 2004, 2007, 2009 + Copyright (C) 1996, 1997, 2001, 2004, 2007, 2009, 2011 Free Software Foundation, Inc. This file is part of GCC. @@ -55,4 +55,3 @@ do \ #define STANDARD_EXEC_PREFIX "/gnu/libexec/gcc/" #define STANDARD_STARTFILE_PREFIX "/gnu/lib/" -#define STANDARD_INCLUDE_DIR "/gnu/include" |