aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2003-06-07 19:30:32 +0200
committerAndreas Jaeger <aj@gcc.gnu.org>2003-06-07 19:30:32 +0200
commit44de936effb3be77a5a7b25873ed2f8a9229ab9c (patch)
tree3090d2b584ada47454a88bdd82415035b6e0e7f0
parent55c6e1a6dd2f997ef0c4b12b2ede788c09213fce (diff)
downloadgcc-44de936effb3be77a5a7b25873ed2f8a9229ab9c.zip
gcc-44de936effb3be77a5a7b25873ed2f8a9229ab9c.tar.gz
gcc-44de936effb3be77a5a7b25873ed2f8a9229ab9c.tar.bz2
crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
* crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE. * system.h: Poison INIT_SECTION_PREAMBLE. From-SVN: r67593
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/crtstuff.c10
-rw-r--r--gcc/system.h2
3 files changed, 7 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2b58ad4..2938fa3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2003-06-07 Andreas Jaeger <aj@suse.de>
+
+ * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
+
+ * system.h: Poison INIT_SECTION_PREAMBLE.
+
2003-06-07 Zack Weinberg <zack@codesourcery.com>
* config.gcc (with_cpu handling): Translate sparc64 in
diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c
index 11599e0..a5c46d6 100644
--- a/gcc/crtstuff.c
+++ b/gcc/crtstuff.c
@@ -343,16 +343,6 @@ __do_global_ctors (void)
asm (INIT_SECTION_ASM_OP); /* cc1 doesn't know that we are switching! */
-/* On some svr4 systems, the initial .init section preamble code provided in
- crti.o may do something, such as bump the stack, which we have to
- undo before we reach the function prologue code for __do_global_ctors
- (directly below). For such systems, define the macro INIT_SECTION_PREAMBLE
- to expand into the code needed to undo the actions of the crti.o file. */
-
-#ifdef INIT_SECTION_PREAMBLE
- INIT_SECTION_PREAMBLE;
-#endif
-
/* A routine to invoke all of the global constructors upon entry to the
program. We put this into the .init section (for systems that have
such a thing) so that we can properly perform the construction of
diff --git a/gcc/system.h b/gcc/system.h
index f5b5220..c852553 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -645,7 +645,7 @@ typedef char _Bool;
ROUND_TYPE_SIZE_UNIT CONST_SECTION_ASM_OP CRT_GET_RFIB_TEXT \
DBX_LBRAC_FIRST DBX_OUTPUT_ENUM DBX_OUTPUT_SOURCE_FILENAME \
DBX_WORKING_DIRECTORY INSN_CACHE_DEPTH INSN_CACHE_SIZE \
- INSN_CACHE_LINE_WIDTH
+ INSN_CACHE_LINE_WIDTH INIT_SECTION_PREAMBLE
/* Hooks that are no longer used. */
#pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE \