summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-08 10:13:19 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-08 10:13:19 +0000
commitfcd42b1e55fb1fb044f703eac10788ba6aa3d1d7 (patch)
tree379e548ad7e6cdc8908ed197771e9b289b60574f
parent4d10b46310044a21bf4a8dc66690d7080d2a88f7 (diff)
downloadgcc-fcd42b1e55fb1fb044f703eac10788ba6aa3d1d7.tar.gz
* Makefile.in (cs-tconfig.h): Pass USED_FOR_TARGET to mkconfig.sh
* aclocal.m4 (GCC_TARGET_TEMPLATE, AH_TEMPLATE): New. * configure.ac (enable_checking): Fix typos in runtime_checking. (ENABLE_RUNTIME_CHECKING): Mark as target template. (xm_file): Prepend auto-host.h (HAVE_GAS_HIDDEN, HAVE_LD_EH_FRAME_HDR): Mark as target template. * mkconfig.sh: Do not automatically define USED_FOR_TARGET in tconfig.h. * crtstuff.c: Do not include auto-host.h. (IN_LIBGCC2): Do not define. * gcov-io.h: Include tconfig.h, not auto-host.h. * libgcc2.c: Do not include auto-host.h. (abort): Do not undefine. * libgcov.c: Remove unneeded comment about config.h. * unwind-dw2-fde-glibc.c: Do not inlude auto-host.h. * config.in, configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99386 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog20
-rw-r--r--gcc/Makefile.in2
-rw-r--r--gcc/aclocal.m422
-rw-r--r--gcc/config.in624
-rwxr-xr-xgcc/configure11
-rw-r--r--gcc/configure.ac9
-rw-r--r--gcc/crtstuff.c9
-rw-r--r--gcc/gcov-io.h2
-rw-r--r--gcc/libgcc2.c13
-rw-r--r--gcc/libgcov.c4
-rw-r--r--gcc/mkconfig.sh14
-rw-r--r--gcc/unwind-dw2-fde-glibc.c1
12 files changed, 685 insertions, 46 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4786a4fc7cc..38b08bdb2a7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,4 +1,24 @@
2005-05-08 Nathan Sidwell <nathan@codesourcery.com>
+ Paolo Bonzini <bonzini@gnu.org>
+
+ * Makefile.in (cs-tconfig.h): Pass USED_FOR_TARGET to mkconfig.sh
+ * aclocal.m4 (GCC_TARGET_TEMPLATE, AH_TEMPLATE): New.
+ * configure.ac (enable_checking): Fix typos in runtime_checking.
+ (ENABLE_RUNTIME_CHECKING): Mark as target template.
+ (xm_file): Prepend auto-host.h
+ (HAVE_GAS_HIDDEN, HAVE_LD_EH_FRAME_HDR): Mark as target template.
+ * mkconfig.sh: Do not automatically define USED_FOR_TARGET in
+ tconfig.h.
+ * crtstuff.c: Do not include auto-host.h.
+ (IN_LIBGCC2): Do not define.
+ * gcov-io.h: Include tconfig.h, not auto-host.h.
+ * libgcc2.c: Do not include auto-host.h.
+ (abort): Do not undefine.
+ * libgcov.c: Remove unneeded comment about config.h.
+ * unwind-dw2-fde-glibc.c: Do not inlude auto-host.h.
+ * config.in, configure: Regenerated.
+
+2005-05-08 Nathan Sidwell <nathan@codesourcery.com>
Falk Hueffner <falk@debian.org>
* config/alpha/alpha.c (tls_symbolic_operand_1): Use gcc_assert
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 3d859bea303..531c003efd0 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1086,7 +1086,7 @@ cs-bconfig.h: Makefile
cs-tconfig.h: Makefile
TARGET_CPU_DEFAULT="" \
- HEADERS="$(xm_include_list)" DEFINES="$(xm_defines)" \
+ HEADERS="$(xm_include_list)" DEFINES="USED_FOR_TARGET $(xm_defines)" \
$(SHELL) $(srcdir)/mkconfig.sh tconfig.h
cs-tm.h: Makefile
diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4
index ad7f518f8ed..98c56a47af0 100644
--- a/gcc/aclocal.m4
+++ b/gcc/aclocal.m4
@@ -654,3 +654,25 @@ AC_PREREQ([2.50])dnl
# expand $ac_aux_dir to an absolute path
am_aux_dir=`cd $ac_aux_dir && pwd`
])
+
+
+dnl GCC_TARGET_TEMPLATE(KEY)
+dnl ------------------------
+dnl Define KEY as a valid configure key on the target machine.
+
+m4_define([GCC_TARGET_TEMPLATE],
+[m4_define([GCC_TARGET_TEMPLATE($1)],[])])
+
+dnl AH_TEMPLATE(KEY, DESCRIPTION)
+dnl -----------------------------
+dnl Issue an autoheader template for KEY, i.e., a comment composed of
+dnl DESCRIPTION (properly wrapped), and then #undef KEY. Redefinition
+dnl of the macro in autoheader.m4, to support definition of only a few
+dnl keys while compiling target libraries.
+
+m4_define([AH_TEMPLATE],
+[AH_VERBATIM([$1],m4_text_wrap([$2 */], [ ], [/* ])
+m4_ifdef([GCC_TARGET_TEMPLATE($1)],[],[#ifndef USED_FOR_TARGET
+])[#undef $1]m4_ifdef([GCC_TARGET_TEMPLATE($1)],[],[
+#endif
+]))])
diff --git a/gcc/config.in b/gcc/config.in
index 9b0603fcccd..f1d33c087ee 100644
--- a/gcc/config.in
+++ b/gcc/config.in
@@ -1,55 +1,94 @@
/* config.in. Generated from configure.ac by autoheader. */
/* Define as the number of bits in a byte, if \`limits.h' doesn't. */
+#ifndef USED_FOR_TARGET
#undef CHAR_BIT
+#endif
+
/* Define 0/1 to force the choice for exception handling model. */
+#ifndef USED_FOR_TARGET
#undef CONFIG_SJLJ_EXCEPTIONS
+#endif
+
/* Define to enable the use of a default assembler. */
+#ifndef USED_FOR_TARGET
#undef DEFAULT_ASSEMBLER
+#endif
+
/* Define to enable the use of a default linker. */
+#ifndef USED_FOR_TARGET
#undef DEFAULT_LINKER
+#endif
+
/* Define if you want to use __cxa_atexit, rather than atexit, to register C++
destructors for local statics and global objects. This is essential for
fully standards-compliant handling of destructors, but requires
__cxa_atexit in libc. */
+#ifndef USED_FOR_TARGET
#undef DEFAULT_USE_CXA_ATEXIT
+#endif
+
/* Define if you want assertions enabled. This is a cheap check. */
+#ifndef USED_FOR_TARGET
#undef ENABLE_ASSERT_CHECKING
+#endif
+
/* Define if you want more run-time sanity checks. This one gets a grab bag of
miscellaneous but relatively cheap checks. */
+#ifndef USED_FOR_TARGET
#undef ENABLE_CHECKING
+#endif
+
/* Define if you want fold checked that it never destructs its argument. This
is quite expensive. */
+#ifndef USED_FOR_TARGET
#undef ENABLE_FOLD_CHECKING
+#endif
+
/* Define if you want the garbage collector to operate in maximally paranoid
mode, validating the entire heap and collecting garbage at every
opportunity. This is extremely expensive. */
+#ifndef USED_FOR_TARGET
#undef ENABLE_GC_ALWAYS_COLLECT
+#endif
+
/* Define if you want the garbage collector to do object poisoning and other
memory allocation checks. This is quite expensive. */
+#ifndef USED_FOR_TARGET
#undef ENABLE_GC_CHECKING
+#endif
+
/* Define to 1 if translation of program messages to the user's native
language is requested. */
+#ifndef USED_FOR_TARGET
#undef ENABLE_NLS
+#endif
+
/* Define if you want all operations on RTL (the basic data structure of the
optimizer and back end) to be checked for dynamic type safety at runtime.
This is quite expensive. */
+#ifndef USED_FOR_TARGET
#undef ENABLE_RTL_CHECKING
+#endif
+
/* Define if you want RTL flag accesses to be checked against the RTL codes
that are supported for each access macro. This is relatively cheap. */
+#ifndef USED_FOR_TARGET
#undef ENABLE_RTL_FLAG_CHECKING
+#endif
+
/* Define if you want runtime assertions enabled. This is a cheap check. */
#undef ENABLE_RUNTIME_CHECKING
@@ -58,639 +97,1209 @@
front ends) to be checked for dynamic type safety at runtime. This is
moderately expensive. The tree browser debugging routines will also be
enabled by this option. */
+#ifndef USED_FOR_TARGET
#undef ENABLE_TREE_CHECKING
+#endif
+
/* Define if you want to run subprograms and generated programs through
valgrind (a memory checker). This is extremely expensive. */
+#ifndef USED_FOR_TARGET
#undef ENABLE_VALGRIND_CHECKING
+#endif
+
/* Define to 1 if installation paths should be looked up in the Windows
Registry. Ignored on non-Windows hosts. */
+#ifndef USED_FOR_TARGET
#undef ENABLE_WIN32_REGISTRY
+#endif
+
/* Define to the name of a file containing a list of extra machine modes for
this architecture. */
+#ifndef USED_FOR_TARGET
#undef EXTRA_MODES_FILE
+#endif
+
/* Define to enable detailed memory allocation stats gathering. */
+#ifndef USED_FOR_TARGET
#undef GATHER_STATISTICS
+#endif
+
/* Define to the type of elements in the array set by `getgroups'. Usually
this is either `int' or `gid_t'. */
+#ifndef USED_FOR_TARGET
#undef GETGROUPS_T
+#endif
+
/* Define if the zone collector is in use */
+#ifndef USED_FOR_TARGET
#undef GGC_ZONE
+#endif
+
/* Define to 1 if you have the `alphasort' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_ALPHASORT
+#endif
+
/* Define if your assembler supports dwarf2 .file/.loc directives, and
preserves file table indices exactly as given. */
+#ifndef USED_FOR_TARGET
#undef HAVE_AS_DWARF2_DEBUG_LINE
+#endif
+
/* Define if your assembler supports explicit relocations. */
+#ifndef USED_FOR_TARGET
#undef HAVE_AS_EXPLICIT_RELOCS
+#endif
+
/* Define if your assembler supports the --gdwarf2 option. */
+#ifndef USED_FOR_TARGET
#undef HAVE_AS_GDWARF2_DEBUG_FLAG
+#endif
+
/* Define true if the assembler supports '.long foo@GOTOFF'. */
+#ifndef USED_FOR_TARGET
#undef HAVE_AS_GOTOFF_IN_DATA
+#endif
+
/* Define if your assembler supports the --gstabs option. */
+#ifndef USED_FOR_TARGET
#undef HAVE_AS_GSTABS_DEBUG_FLAG
+#endif
+
/* Define if your assembler supports the Sun syntax for cmov. */
+#ifndef USED_FOR_TARGET
#undef HAVE_AS_IX86_CMOV_SUN_SYNTAX
+#endif
+
/* Define if your assembler supports .sleb128 and .uleb128. */
+#ifndef USED_FOR_TARGET
#undef HAVE_AS_LEB128
+#endif
+
/* Define if your assembler supports ltoffx and ldxmov relocations. */
+#ifndef USED_FOR_TARGET
#undef HAVE_AS_LTOFFX_LDXMOV_RELOCS
+#endif
+
/* Define if your assembler supports mfcr field. */
+#ifndef USED_FOR_TARGET
#undef HAVE_AS_MFCRF
+#endif
+
/* Define if your assembler supports the -no-mul-bug-abort option. */
+#ifndef USED_FOR_TARGET
#undef HAVE_AS_NO_MUL_BUG_ABORT_OPTION
+#endif
+
/* Define if your assembler supports offsetable %lo(). */
+#ifndef USED_FOR_TARGET
#undef HAVE_AS_OFFSETABLE_LO10
+#endif
+
/* Define if your assembler supports popcntb field. */
#undef HAVE_AS_POPCNTB
/* Define if your assembler supports .register. */
+#ifndef USED_FOR_TARGET
#undef HAVE_AS_REGISTER_PSEUDO_OP
+#endif
+
/* Define if your assembler supports -relax option. */
+#ifndef USED_FOR_TARGET
#undef HAVE_AS_RELAX_OPTION
+#endif
+
/* Define if your assembler and linker support unaligned PC relative relocs.
*/
+#ifndef USED_FOR_TARGET
#undef HAVE_AS_SPARC_UA_PCREL
+#endif
+
/* Define if your assembler and linker support unaligned PC relative relocs
against hidden symbols. */
+#ifndef USED_FOR_TARGET
#undef HAVE_AS_SPARC_UA_PCREL_HIDDEN
+#endif
+
/* Define if your assembler supports thread-local storage. */
+#ifndef USED_FOR_TARGET
#undef HAVE_AS_TLS
+#endif
+
/* Define to 1 if you have the `atoll' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_ATOLL
+#endif
+
/* Define to 1 if you have the `atoq' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_ATOQ
+#endif
+
/* Define to 1 if you have the `clearerr_unlocked' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_CLEARERR_UNLOCKED
+#endif
+
/* Define to 1 if you have the `clock' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_CLOCK
+#endif
+
/* Define if <time.h> defines clock_t. */
+#ifndef USED_FOR_TARGET
#undef HAVE_CLOCK_T
+#endif
+
/* Define to 1 if we found a declaration for 'abort', otherwise define to 0.
*/
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_ABORT
+#endif
+
/* Define to 1 if we found a declaration for 'atof', otherwise define to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_ATOF
+#endif
+
/* Define to 1 if we found a declaration for 'atol', otherwise define to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_ATOL
+#endif
+
/* Define to 1 if we found a declaration for 'basename', otherwise define to
0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_BASENAME
+#endif
+
/* Define to 1 if we found a declaration for 'calloc', otherwise define to 0.
*/
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_CALLOC
+#endif
+
/* Define to 1 if we found a declaration for 'clearerr_unlocked', otherwise
define to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_CLEARERR_UNLOCKED
+#endif
+
/* Define to 1 if we found a declaration for 'clock', otherwise define to 0.
*/
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_CLOCK
+#endif
+
/* Define to 1 if we found a declaration for 'errno', otherwise define to 0.
*/
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_ERRNO
+#endif
+
/* Define to 1 if we found a declaration for 'feof_unlocked', otherwise define
to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_FEOF_UNLOCKED
+#endif
+
/* Define to 1 if we found a declaration for 'ferror_unlocked', otherwise
define to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_FERROR_UNLOCKED
+#endif
+
/* Define to 1 if we found a declaration for 'fflush_unlocked', otherwise
define to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_FFLUSH_UNLOCKED
+#endif
+
/* Define to 1 if we found a declaration for 'fgetc_unlocked', otherwise
define to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_FGETC_UNLOCKED
+#endif
+
/* Define to 1 if we found a declaration for 'fgets_unlocked', otherwise
define to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_FGETS_UNLOCKED
+#endif
+
/* Define to 1 if we found a declaration for 'fileno_unlocked', otherwise
define to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_FILENO_UNLOCKED
+#endif
+
/* Define to 1 if we found a declaration for 'fprintf_unlocked', otherwise
define to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_FPRINTF_UNLOCKED
+#endif
+
/* Define to 1 if we found a declaration for 'fputc_unlocked', otherwise
define to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_FPUTC_UNLOCKED
+#endif
+
/* Define to 1 if we found a declaration for 'fputs_unlocked', otherwise
define to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_FPUTS_UNLOCKED
+#endif
+
/* Define to 1 if we found a declaration for 'fread_unlocked', otherwise
define to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_FREAD_UNLOCKED
+#endif
+
/* Define to 1 if we found a declaration for 'free', otherwise define to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_FREE
+#endif
+
/* Define to 1 if we found a declaration for 'fwrite_unlocked', otherwise
define to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_FWRITE_UNLOCKED
+#endif
+
/* Define to 1 if we found a declaration for 'getchar_unlocked', otherwise
define to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_GETCHAR_UNLOCKED
+#endif
+
/* Define to 1 if we found a declaration for 'getcwd', otherwise define to 0.
*/
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_GETCWD
+#endif
+
/* Define to 1 if we found a declaration for 'getc_unlocked', otherwise define
to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_GETC_UNLOCKED
+#endif
+
/* Define to 1 if we found a declaration for 'getenv', otherwise define to 0.
*/
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_GETENV
+#endif
+
/* Define to 1 if we found a declaration for 'getopt', otherwise define to 0.
*/
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_GETOPT
+#endif
+
/* Define to 1 if we found a declaration for 'getpagesize', otherwise define
to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_GETPAGESIZE
+#endif
+
/* Define to 1 if we found a declaration for 'getrlimit', otherwise define to
0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_GETRLIMIT
+#endif
+
/* Define to 1 if we found a declaration for 'getrusage', otherwise define to
0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_GETRUSAGE
+#endif
+
/* Define to 1 if we found a declaration for 'getwd', otherwise define to 0.
*/
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_GETWD
+#endif
+
/* Define to 1 if we found a declaration for 'ldgetname', otherwise define to
0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_LDGETNAME
+#endif
+
/* Define to 1 if we found a declaration for 'malloc', otherwise define to 0.
*/
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_MALLOC
+#endif
+
/* Define to 1 if we found a declaration for 'putchar_unlocked', otherwise
define to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_PUTCHAR_UNLOCKED
+#endif
+
/* Define to 1 if we found a declaration for 'putc_unlocked', otherwise define
to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_PUTC_UNLOCKED
+#endif
+
/* Define to 1 if we found a declaration for 'realloc', otherwise define to 0.
*/
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_REALLOC
+#endif
+
/* Define to 1 if we found a declaration for 'sbrk', otherwise define to 0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_SBRK
+#endif
+
/* Define to 1 if we found a declaration for 'setrlimit', otherwise define to
0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_SETRLIMIT
+#endif
+
/* Define to 1 if we found a declaration for 'snprintf', otherwise define to
0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_SNPRINTF
+#endif
+
/* Define to 1 if we found a declaration for 'strsignal', otherwise define to
0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_STRSIGNAL
+#endif
+
/* Define to 1 if we found a declaration for 'strstr', otherwise define to 0.
*/
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_STRSTR
+#endif
+
/* Define to 1 if we found a declaration for 'times', otherwise define to 0.
*/
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_TIMES
+#endif
+
/* Define to 1 if we found a declaration for 'vasprintf', otherwise define to
0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_VASPRINTF
+#endif
+
/* Define to 1 if we found a declaration for 'vsnprintf', otherwise define to
0. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DECL_VSNPRINTF
+#endif
+
/* Define to 1 if you have the <direct.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DIRECT_H
+#endif
+
/* Define to 1 if you have the `dup2' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_DUP2
+#endif
+
/* Define to 1 if you have the <fcntl.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_FCNTL_H
+#endif
+
/* Define to 1 if you have the `feof_unlocked' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_FEOF_UNLOCKED
+#endif
+
/* Define to 1 if you have the `ferror_unlocked' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_FERROR_UNLOCKED
+#endif
+
/* Define to 1 if you have the `fflush_unlocked' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_FFLUSH_UNLOCKED
+#endif
+
/* Define to 1 if you have the `fgetc_unlocked' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_FGETC_UNLOCKED
+#endif
+
/* Define to 1 if you have the `fgets_unlocked' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_FGETS_UNLOCKED
+#endif
+
/* Define to 1 if you have the `fileno_unlocked' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_FILENO_UNLOCKED
+#endif
+
/* Define to 1 if you have the `fork' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_FORK
+#endif
+
/* Define to 1 if you have the `fprintf_unlocked' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_FPRINTF_UNLOCKED
+#endif
+
/* Define to 1 if you have the `fputc_unlocked' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_FPUTC_UNLOCKED
+#endif
+
/* Define to 1 if you have the `fputs_unlocked' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_FPUTS_UNLOCKED
+#endif
+
/* Define to 1 if you have the `fread_unlocked' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_FREAD_UNLOCKED
+#endif
+
/* Define to 1 if you have the `fwrite_unlocked' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_FWRITE_UNLOCKED
+#endif
+
/* Define if your assembler supports .balign and .p2align. */
+#ifndef USED_FOR_TARGET
#undef HAVE_GAS_BALIGN_AND_P2ALIGN
+#endif
+
/* Define 0/1 if your assembler supports COMDAT group. */
+#ifndef USED_FOR_TARGET
#undef HAVE_GAS_COMDAT_GROUP
+#endif
+
/* Define if your assembler uses the new HImode fild and fist notation. */
+#ifndef USED_FOR_TARGET
#undef HAVE_GAS_FILDS_FISTS
+#endif
+
/* Define if your assembler and linker support .hidden. */
#undef HAVE_GAS_HIDDEN
/* Define if your assembler supports specifying the maximum number of bytes to
skip when using the GAS .p2align command. */
+#ifndef USED_FOR_TARGET
#undef HAVE_GAS_MAX_SKIP_P2ALIGN
+#endif
+
/* Define if your assembler supports .nsubspa comdat option. */
+#ifndef USED_FOR_TARGET
#undef HAVE_GAS_NSUBSPA_COMDAT
+#endif
+
/* Define if your assembler and linker support 32-bit section relative relocs
via '.secrel32 label'. */
+#ifndef USED_FOR_TARGET
#undef HAVE_GAS_PE_SECREL32_RELOC
+#endif
+
/* Define 0/1 if your assembler supports marking sections with SHF_MERGE flag.
*/
+#ifndef USED_FOR_TARGET
#undef HAVE_GAS_SHF_MERGE
+#endif
+
/* Define if your assembler supports .subsection and .subsection -1 starts
emitting at the beginning of your section. */
+#ifndef USED_FOR_TARGET
#undef HAVE_GAS_SUBSECTION_ORDERING
+#endif
+
/* Define if your assembler supports .weak. */
+#ifndef USED_FOR_TARGET
#undef HAVE_GAS_WEAK
+#endif
+
/* Define to 1 if you have the `getchar_unlocked' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_GETCHAR_UNLOCKED
+#endif
+
/* Define to 1 if you have the `getc_unlocked' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_GETC_UNLOCKED
+#endif
+
/* Define to 1 if you have the `getrlimit' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_GETRLIMIT
+#endif
+
/* Define to 1 if you have the `getrusage' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_GETRUSAGE
+#endif
+
/* Define to 1 if you have the `gettimeofday' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_GETTIMEOFDAY
+#endif
+
/* Define if you have the iconv() function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_ICONV
+#endif
+
/* Define to 1 if you have the <iconv.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_ICONV_H
+#endif
+
/* Define .init_array/.fini_array sections are available and working. */
+#ifndef USED_FOR_TARGET
#undef HAVE_INITFINI_ARRAY
+#endif
+
/* Define if you have a working <inttypes.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_INTTYPES_H
+#endif
+
/* Define to 1 if you have the `kill' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_KILL
+#endif
+
/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
+#ifndef USED_FOR_TARGET
#undef HAVE_LANGINFO_CODESET
+#endif
+
/* Define to 1 if you have the <langinfo.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_LANGINFO_H
+#endif
+
/* Define if your <locale.h> file defines LC_MESSAGES. */
+#ifndef USED_FOR_TARGET
#undef HAVE_LC_MESSAGES
+#endif
+
/* Define to 1 if you have the <ldfcn.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_LDFCN_H
+#endif
+
/* Define if your linker supports --as-needed and --no-as-needed options. */
+#ifndef USED_FOR_TARGET
#undef HAVE_LD_AS_NEEDED
+#endif
+
/* Define if your linker supports --demangle option. */
+#ifndef USED_FOR_TARGET
#undef HAVE_LD_DEMANGLE
+#endif
+
/* Define if your linker supports --eh-frame-hdr option. */
#undef HAVE_LD_EH_FRAME_HDR
/* Define if your PowerPC64 linker only needs function descriptor syms. */
+#ifndef USED_FOR_TARGET
#undef HAVE_LD_NO_DOT_SYMS
+#endif
+
/* Define if your linker supports -pie option. */
+#ifndef USED_FOR_TARGET
#undef HAVE_LD_PIE
+#endif
+
/* Define if your linker links a mix of read-only and read-write sections into
a read-write section. */
+#ifndef USED_FOR_TARGET
#undef HAVE_LD_RO_RW_SECTION_MIXING
+#endif
+
/* Define if your linker supports -Bstatic/-Bdynamic option. */
+#ifndef USED_FOR_TARGET
#undef HAVE_LD_STATIC_DYNAMIC
+#endif
+
/* Define if your linker supports --sysroot. */
+#ifndef USED_FOR_TARGET
#undef HAVE_LD_SYSROOT
+#endif
+
/* Define to 1 if you have the <limits.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_LIMITS_H
+#endif
+
/* Define to 1 if you have the <locale.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_LOCALE_H
+#endif
+
/* Define if your compiler supports the \`long long' type. */
+#ifndef USED_FOR_TARGET
#undef HAVE_LONG_LONG
+#endif
+
/* Define to 1 if you have the <malloc.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_MALLOC_H
+#endif
+
/* Define to 1 if you have the `mbstowcs' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_MBSTOWCS
+#endif
+
/* Define if valgrind's memcheck.h header is installed. */
+#ifndef USED_FOR_TARGET
#undef HAVE_MEMCHECK_H
+#endif
+
/* Define to 1 if you have the <memory.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_MEMORY_H
+#endif
+
/* Define to 1 if you have the `mincore' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_MINCORE
+#endif
+
/* Define to 1 if you have the `mmap' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_MMAP
+#endif
+
/* Define if mmap with MAP_ANON(YMOUS) works. */
+#ifndef USED_FOR_TARGET
#undef HAVE_MMAP_ANON
+#endif
+
/* Define if mmap of /dev/zero works. */
+#ifndef USED_FOR_TARGET
#undef HAVE_MMAP_DEV_ZERO
+#endif
+
/* Define if read-only mmap of a plain file works. */
+#ifndef USED_FOR_TARGET
#undef HAVE_MMAP_FILE
+#endif
+
/* Define to 1 if you have the `nl_langinfo' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_NL_LANGINFO
+#endif
+
/* Define if printf supports "%p". */
+#ifndef USED_FOR_TARGET
#undef HAVE_PRINTF_PTR
+#endif
+
/* Define to 1 if you have the `putchar_unlocked' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_PUTCHAR_UNLOCKED
+#endif
+
/* Define to 1 if you have the `putc_unlocked' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_PUTC_UNLOCKED
+#endif
+
/* Define to 1 if you have the `scandir' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_SCANDIR
+#endif
+
/* Define to 1 if you have the `setlocale' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_SETLOCALE
+#endif
+
/* Define to 1 if you have the `setrlimit' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_SETRLIMIT
+#endif
+
/* Define to 1 if you have the <stddef.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_STDDEF_H
+#endif
+
/* Define to 1 if you have the <stdint.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_STDINT_H
+#endif
+
/* Define to 1 if you have the <stdlib.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_STDLIB_H
+#endif
+
/* Define to 1 if you have the <strings.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_STRINGS_H
+#endif
+
/* Define to 1 if you have the <string.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_STRING_H
+#endif
+
/* Define to 1 if you have the `strsignal' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_STRSIGNAL
+#endif
+
/* Define if <sys/times.h> defines struct tms. */
+#ifndef USED_FOR_TARGET
#undef HAVE_STRUCT_TMS
+#endif
+
/* Define to 1 if you have the `sysconf' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_SYSCONF
+#endif
+
/* Define to 1 if you have the <sys/file.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_SYS_FILE_H
+#endif
+
/* Define to 1 if you have the <sys/mman.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_SYS_MMAN_H
+#endif
+
/* Define to 1 if you have the <sys/param.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_SYS_PARAM_H
+#endif
+
/* Define to 1 if you have the <sys/resource.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_SYS_RESOURCE_H
+#endif
+
/* Define to 1 if you have the <sys/stat.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_SYS_STAT_H
+#endif
+
/* Define to 1 if you have the <sys/times.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_SYS_TIMES_H
+#endif
+
/* Define to 1 if you have the <sys/time.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_SYS_TIME_H
+#endif
+
/* Define to 1 if you have the <sys/types.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_SYS_TYPES_H
+#endif
+
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
+#ifndef USED_FOR_TARGET
#undef HAVE_SYS_WAIT_H
+#endif
+
/* Define to 1 if you have the `times' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_TIMES
+#endif
+
/* Define to 1 if you have the <time.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_TIME_H
+#endif
+
/* Define to 1 if you have the <unistd.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_UNISTD_H
+#endif
+
/* Define if valgrind's valgrind/memcheck.h header is installed. */
+#ifndef USED_FOR_TARGET
#undef HAVE_VALGRIND_MEMCHECK_H
+#endif
+
/* Define to 1 if you have the `vfork' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_VFORK
+#endif
+
/* Define to 1 if you have the <vfork.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_VFORK_H
+#endif
+
/* Define to 1 if you have the <wchar.h> header file. */
+#ifndef USED_FOR_TARGET
#undef HAVE_WCHAR_H
+#endif
+
/* Define to 1 if you have the `wcswidth' function. */
+#ifndef USED_FOR_TARGET
#undef HAVE_WCSWIDTH
+#endif
+
/* Define to 1 if `fork' works. */
+#ifndef USED_FOR_TARGET
#undef HAVE_WORKING_FORK
+#endif
+
/* Define this macro if mbstowcs does not crash when its first argument is
NULL. */
+#ifndef USED_FOR_TARGET
#undef HAVE_WORKING_MBSTOWCS
+#endif
+
/* Define to 1 if `vfork' works. */
+#ifndef USED_FOR_TARGET
#undef HAVE_WORKING_VFORK
+#endif
+
/* Define if your compiler supports the \`__int64' type. */
+#ifndef USED_FOR_TARGET
#undef HAVE___INT64
+#endif
+
/* Define as const if the declaration of iconv() needs const. */
+#ifndef USED_FOR_TARGET
#undef ICONV_CONST
+#endif
+
/* Define if host mkdir takes a single argument. */
+#ifndef USED_FOR_TARGET
#undef MKDIR_TAKES_ONE_ARG
+#endif
+
/* Define to 1 if HOST_WIDE_INT must be 64 bits wide (see hwint.h). */
+#ifndef USED_FOR_TARGET
#undef NEED_64BIT_HOST_WIDE_INT
+#endif
+
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
+#ifndef USED_FOR_TARGET
#undef NO_MINUS_C_MINUS_O
+#endif
+
/* Define to the address where bug reports for this package should be sent. */
+#ifndef USED_FOR_TARGET
#undef PACKAGE_BUGREPORT
+#endif
+
/* Define to the full name of this package. */
+#ifndef USED_FOR_TARGET
#undef PACKAGE_NAME
+#endif
+
/* Define to the full name and version of this package. */
+#ifndef USED_FOR_TARGET
#undef PACKAGE_STRING
+#endif
+
/* Define to the one symbol short name of this package. */
+#ifndef USED_FOR_TARGET
#undef PACKAGE_TARNAME
+#endif
+
/* Define to the version of this package. */
+#ifndef USED_FOR_TARGET
#undef PACKAGE_VERSION
+#endif
+
/* Define to PREFIX/include if cpp should also search that directory. */
+#ifndef USED_FOR_TARGET
#undef PREFIX_INCLUDE_DIR
+#endif
+
/* The size of a `int', as computed by sizeof. */
+#ifndef USED_FOR_TARGET
#undef SIZEOF_INT
+#endif
+
/* The size of a `long', as computed by sizeof. */
+#ifndef USED_FOR_TARGET
#undef SIZEOF_LONG
+#endif
+
/* The size of a `long long', as computed by sizeof. */
+#ifndef USED_FOR_TARGET
#undef SIZEOF_LONG_LONG
+#endif
+
/* The size of a `short', as computed by sizeof. */
+#ifndef USED_FOR_TARGET
#undef SIZEOF_SHORT
+#endif
+
/* The size of a `void *', as computed by sizeof. */
+#ifndef USED_FOR_TARGET
#undef SIZEOF_VOID_P
+#endif
+
/* The size of a `__int64', as computed by sizeof. */
+#ifndef USED_FOR_TARGET
#undef SIZEOF___INT64
+#endif
+
/* Define to 1 if you have the ANSI C header files. */
+#ifndef USED_FOR_TARGET
#undef STDC_HEADERS
+#endif
+
/* Define if you can safely include both <string.h> and <strings.h>. */
+#ifndef USED_FOR_TARGET
#undef STRING_WITH_STRINGS
+#endif
+
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
+#ifndef USED_FOR_TARGET
#undef TIME_WITH_SYS_TIME
+#endif
+
/* Define if your assembler mis-optimizes .eh_frame data. */
+#ifndef USED_FOR_TARGET
#undef USE_AS_TRADITIONAL_FORMAT
+#endif
+
/* Define to 1 if the 'long long' (or '__int64') is wider than 'long' but
still efficiently supported by the host hardware. */
+#ifndef USED_FOR_TARGET
#undef USE_LONG_LONG_FOR_WIDEST_FAST_INT
+#endif
+
/* Define if location_t is fileline integer cookie. */
+#ifndef USED_FOR_TARGET
#undef USE_MAPPED_LOCATION
+#endif
+
/* Define to be the last component of the Windows registry key under which to
look for installation paths. The full key used will be
HKEY_LOCAL_MACHINE/SOFTWARE/Free Software Foundation/{WIN32_REGISTRY_KEY}.
The default is the GCC version number. */
+#ifndef USED_FOR_TARGET
#undef WIN32_REGISTRY_KEY
+#endif
+
/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
+#ifndef USED_FOR_TARGET
#undef WORDS_BIGENDIAN
+#endif
+
/* Always define this when using the GNU C Library */
+#ifndef USED_FOR_TARGET
#undef _GNU_SOURCE
+#endif
+
/* Define to `int' if <sys/types.h> doesn't define. */
+#ifndef USED_FOR_TARGET
#undef gid_t
+#endif
+
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
@@ -699,16 +1308,31 @@
#endif
/* Define to `int' if <sys/types.h> does not define. */
+#ifndef USED_FOR_TARGET
#undef pid_t
+#endif
+
/* Define to \`long' if <sys/resource.h> doesn't define. */
+#ifndef USED_FOR_TARGET
#undef rlim_t
+#endif
+
/* Define to `int' if <sys/types.h> does not define. */
+#ifndef USED_FOR_TARGET
#undef ssize_t
+#endif
+
/* Define to `int' if <sys/types.h> doesn't define. */
+#ifndef USED_FOR_TARGET
#undef uid_t
+#endif
+
/* Define as `fork' if `vfork' does not work. */
+#ifndef USED_FOR_TARGET
#undef vfork
+#endif
+
diff --git a/gcc/configure b/gcc/configure
index fd97aaebba9..169cbad5232 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -6292,12 +6292,12 @@ do
yes) ac_assert_checking=1 ; ac_checking=1 ;
ac_fold_checking= ; ac_gc_checking=1 ;
ac_gc_always_collect= ; ac_rtl_checking= ;
- ac_rtlflag_checking=1 ; ac_runtime_chacking=1 ;
+ ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
ac_tree_checking=1 ; ac_valgrind_checking= ;;
no|none) ac_assert_checking= ; ac_checking= ;
ac_fold_checking= ; ac_gc_checking= ;
ac_gc_always_collect= ; ac_rtl_checking= ;
- ac_rtlflag_checking= ; ac_runtime_chacking= ;
+ ac_rtlflag_checking= ; ac_runtime_checking= ;
ac_tree_checking= ; ac_valgrind_checking= ;;
all) ac_assert_checking=1 ; ac_checking=1 ;
ac_fold_checking=1 ; ac_gc_checking=1 ;
@@ -6344,6 +6344,7 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
fi
+
if test x$ac_runtime_checking != x ; then
cat >>confdefs.h <<\_ACEOF
@@ -7399,7 +7400,7 @@ if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
else
ac_prog_version=`$MAKEINFO --version 2>&1 |
sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
- echo "configure:7402: version of makeinfo is $ac_prog_version" >&5
+ echo "configure:7403: version of makeinfo is $ac_prog_version" >&5
case $ac_prog_version in
'') gcc_cv_prog_makeinfo_modern=no;;
4.[2-9]*)
@@ -12256,7 +12257,7 @@ host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
# We don't want ansidecl.h in target files, write code there in ISO/GNU C.
# put this back in temporarily.
-xm_file="ansidecl.h ${xm_file}"
+xm_file="auto-host.h ansidecl.h ${xm_file}"
# --------
# UNSORTED
@@ -13394,6 +13395,7 @@ echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
libgcc_visibility=no
+
if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
libgcc_visibility=yes
@@ -15001,6 +15003,7 @@ elif test x$gcc_cv_ld != x; then
gcc_cv_ld_eh_frame_hdr=yes
fi
fi
+
if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
cat >>confdefs.h <<\_ACEOF
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 21ff1fe6f03..5327e56392b 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -421,12 +421,12 @@ do
yes) ac_assert_checking=1 ; ac_checking=1 ;
ac_fold_checking= ; ac_gc_checking=1 ;
ac_gc_always_collect= ; ac_rtl_checking= ;
- ac_rtlflag_checking=1 ; ac_runtime_chacking=1 ;
+ ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
ac_tree_checking=1 ; ac_valgrind_checking= ;;
no|none) ac_assert_checking= ; ac_checking= ;
ac_fold_checking= ; ac_gc_checking= ;
ac_gc_always_collect= ; ac_rtl_checking= ;
- ac_rtlflag_checking= ; ac_runtime_chacking= ;
+ ac_rtlflag_checking= ; ac_runtime_checking= ;
ac_tree_checking= ; ac_valgrind_checking= ;;
all) ac_assert_checking=1 ; ac_checking=1 ;
ac_fold_checking=1 ; ac_gc_checking=1 ;
@@ -466,6 +466,7 @@ if test x$ac_assert_checking != x ; then
AC_DEFINE(ENABLE_ASSERT_CHECKING, 1,
[Define if you want assertions enabled. This is a cheap check.])
fi
+GCC_TARGET_TEMPLATE(ENABLE_RUNTIME_CHECKING)
if test x$ac_runtime_checking != x ; then
AC_DEFINE(ENABLE_RUNTIME_CHECKING, 1,
[Define if you want runtime assertions enabled. This is a cheap check.])
@@ -1402,7 +1403,7 @@ host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
# We don't want ansidecl.h in target files, write code there in ISO/GNU C.
# put this back in temporarily.
-xm_file="ansidecl.h ${xm_file}"
+xm_file="auto-host.h ansidecl.h ${xm_file}"
# --------
# UNSORTED
@@ -2140,6 +2141,7 @@ changequote([,])dnl
fi])
libgcc_visibility=no
AC_SUBST(libgcc_visibility)
+GCC_TARGET_TEMPLATE([HAVE_GAS_HIDDEN])
if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
libgcc_visibility=yes
AC_DEFINE(HAVE_GAS_HIDDEN, 1,
@@ -2951,6 +2953,7 @@ elif test x$gcc_cv_ld != x; then
gcc_cv_ld_eh_frame_hdr=yes
fi
fi
+GCC_TARGET_TEMPLATE([HAVE_LD_EH_FRAME_HDR])
if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
AC_DEFINE(HAVE_LD_EH_FRAME_HDR, 1,
[Define if your linker supports --eh-frame-hdr option.])
diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c
index 6fd365577b9..9695851e7d1 100644
--- a/gcc/crtstuff.c
+++ b/gcc/crtstuff.c
@@ -51,15 +51,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
This file must be compiled with gcc. */
-/* It is incorrect to include config.h here, because this file is being
- compiled for the target, and hence definitions concerning only the host
- do not apply. */
-
-#define IN_LIBGCC2
-
-/* We include auto-host.h here to get HAVE_GAS_HIDDEN. This is
- supposedly valid even though this is a "target" file. */
-#include "auto-host.h"
#include "tconfig.h"
#include "tsystem.h"
#include "coretypes.h"
diff --git a/gcc/gcov-io.h b/gcc/gcov-io.h
index b7492d72548..76c0c9f06dd 100644
--- a/gcc/gcov-io.h
+++ b/gcc/gcov-io.h
@@ -232,7 +232,7 @@ typedef HOST_WIDEST_INT gcov_type;
is not also used in a DSO. */
#if IN_LIBGCOV
-#include "auto-host.h" /* for HAVE_GAS_HIDDEN */
+#include "tconfig.h"
#define gcov_var __gcov_var
#define gcov_open __gcov_open
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index fb1dce548ec..a303d0bce25 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -29,24 +29,11 @@ along with GCC; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
-
-/* We include auto-host.h here to get HAVE_GAS_HIDDEN. This is
- supposedly valid even though this is a "target" file. */
-#include "auto-host.h"
-
-/* It is incorrect to include config.h here, because this file is being
- compiled for the target, and hence definitions concerning only the host
- do not apply. */
#include "tconfig.h"
#include "tsystem.h"
#include "coretypes.h"
#include "tm.h"
-/* Don't use `fancy_abort' here even if config.h says to use it. */
-#ifdef abort
-#undef abort
-#endif
-
#ifdef HAVE_GAS_HIDDEN
#define ATTRIBUTE_HIDDEN __attribute__ ((__visibility__ ("hidden")))
#else
diff --git a/gcc/libgcov.c b/gcc/libgcov.c
index 054d1e0a3de..8061383ff7e 100644
--- a/gcc/libgcov.c
+++ b/gcc/libgcov.c
@@ -29,10 +29,6 @@ along with GCC; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
-/* It is incorrect to include config.h here, because this file is being
- compiled for the target, and hence definitions concerning only the host
- do not apply. */
-
#include "tconfig.h"
#include "tsystem.h"
#include "coretypes.h"
diff --git a/gcc/mkconfig.sh b/gcc/mkconfig.sh
index 70d9a23d92d..8fd9de29419 100644
--- a/gcc/mkconfig.sh
+++ b/gcc/mkconfig.sh
@@ -54,7 +54,7 @@ for def in $DEFINES; do
echo "#endif" >> ${output}T
done
-# The first entry in HEADERS may be auto-host.h or auto-build.h;
+# The first entry in HEADERS may be auto-FOO.h ;
# it wants to be included even when not -DIN_GCC.
if [ -n "$HEADERS" ]; then
set $HEADERS
@@ -72,17 +72,11 @@ if [ -n "$HEADERS" ]; then
fi
fi
-# If this is tconfig.h, now define USED_FOR_TARGET. If this is tm.h,
-# now include insn-constants.h and insn-flags.h only if IN_GCC is
-# defined but neither GENERATOR_FILE nor USED_FOR_TARGET is defined.
-# (Much of this is temporary.)
+# If this is tm.h, now include insn-constants.h and insn-flags.h only
+# if IN_GCC is defined but neither GENERATOR_FILE nor USED_FOR_TARGET
+# is defined. (Much of this is temporary.)
case $output in
- tconfig.h )
- cat >> ${output}T <<EOF
-#define USED_FOR_TARGET
-EOF
- ;;
tm.h )
cat >> ${output}T <<EOF
#if defined IN_GCC && !defined GENERATOR_FILE && !defined USED_FOR_TARGET
diff --git a/gcc/unwind-dw2-fde-glibc.c b/gcc/unwind-dw2-fde-glibc.c
index 7dd9a72d462..ebdbc168a4b 100644
--- a/gcc/unwind-dw2-fde-glibc.c
+++ b/gcc/unwind-dw2-fde-glibc.c
@@ -33,7 +33,6 @@
#define _GNU_SOURCE 1
#endif
-#include "auto-host.h" /* For HAVE_LD_EH_FRAME_HDR. */
#include "tconfig.h"
#include "tsystem.h"
#ifndef inhibit_libc