aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/initfini-array.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@gcc.gnu.org>2012-01-19 11:43:54 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2012-01-19 11:43:54 +0100
commite9c9f128d7192b21c4be77422d76494aa7ddb474 (patch)
tree332a507497df8b7c686c17eba8ff17d9630b03c7 /gcc/config/initfini-array.h
parent7b4eaf7e352385b571bb75fd60eccf973b24c451 (diff)
downloadgcc-e9c9f128d7192b21c4be77422d76494aa7ddb474.zip
gcc-e9c9f128d7192b21c4be77422d76494aa7ddb474.tar.gz
gcc-e9c9f128d7192b21c4be77422d76494aa7ddb474.tar.bz2
re PR bootstrap/50237 (bootstrap comparison failure for libcpp/lex.o)
PR bootstrap/50237 * config/initfini-array.h: Guard content of the header with #ifdef HAVE_INITFINI_ARRAY. * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file. Add initfini-array.h to tm_file here. * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test. * config.gcc: Don't add initfini-array.h to tm_file here. * configure: Regenerated. From-SVN: r183299
Diffstat (limited to 'gcc/config/initfini-array.h')
-rw-r--r--gcc/config/initfini-array.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config/initfini-array.h b/gcc/config/initfini-array.h
index 8aaadf6..bb48c70 100644
--- a/gcc/config/initfini-array.h
+++ b/gcc/config/initfini-array.h
@@ -1,6 +1,6 @@
/* Definitions for ELF systems with .init_array/.fini_array section
support.
- Copyright (C) 2011
+ Copyright (C) 2011, 2012
Free Software Foundation, Inc.
This file is part of GCC.
@@ -19,6 +19,8 @@
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
+#ifdef HAVE_INITFINI_ARRAY
+
#define USE_INITFINI_ARRAY
#undef INIT_SECTION_ASM_OP
@@ -35,3 +37,5 @@
#define TARGET_ASM_CONSTRUCTOR default_elf_init_array_asm_out_constructor
#undef TARGET_ASM_DESTRUCTOR
#define TARGET_ASM_DESTRUCTOR default_elf_fini_array_asm_out_destructor
+
+#endif