summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrupp <rupp@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-10 20:32:51 +0000
committerrupp <rupp@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-10 20:32:51 +0000
commitd99ced399ba269481af15bad67751dba96db3c3f (patch)
tree7315564c5ae87244616cbb76526ef72bd2abcbd1
parentefab639d7b930a54169b48b7045bde64305a44b6 (diff)
downloadppe42-gcc-d99ced399ba269481af15bad67751dba96db3c3f.tar.gz
ppe42-gcc-d99ced399ba269481af15bad67751dba96db3c3f.zip
* config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
HAS_INIT_SECTION to protection. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55377 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f39c2d2cb43..49fee82e0d1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-07-10 Douglas B Rupp <rupp@gnat.com>
+
+ * config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
+ HAS_INIT_SECTION to protection.
+
2002-07-10 Mark Mitchell <mark@codesourcery.com>
* doc/invoke.texi (Debugging Options): Mention that -gdwarf is
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index a17599a96a3..b21737f984c 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -747,7 +747,7 @@ const struct attribute_spec ix86_attribute_table[];
static tree ix86_handle_cdecl_attribute PARAMS ((tree *, tree, tree, int, bool *));
static tree ix86_handle_regparm_attribute PARAMS ((tree *, tree, tree, int, bool *));
-#ifdef DO_GLOBAL_CTORS_BODY
+#if defined (DO_GLOBAL_CTORS_BODY) && defined (HAS_INIT_SECTION)
static void ix86_svr3_asm_out_constructor PARAMS ((rtx, int));
#endif
@@ -13517,7 +13517,7 @@ ix86_memory_move_cost (mode, class, in)
}
}
-#ifdef DO_GLOBAL_CTORS_BODY
+#if defined (DO_GLOBAL_CTORS_BODY) && defined (HAS_INIT_SECTION)
static void
ix86_svr3_asm_out_constructor (symbol, priority)
rtx symbol;
OpenPOWER on IntegriCloud