i386.c (ix86_svr3_asm_out_constructor): Add HAS_INIT_SECTION to protection.
authorDouglas B Rupp <rupp@gnat.com>
Wed, 10 Jul 2002 20:32:51 +0000 (20:32 +0000)
committerDouglas Rupp <rupp@gcc.gnu.org>
Wed, 10 Jul 2002 20:32:51 +0000 (20:32 +0000)
        * config/i386/i386.c  (ix86_svr3_asm_out_constructor): Add
        HAS_INIT_SECTION to protection.

From-SVN: r55377

gcc/ChangeLog
gcc/config/i386/i386.c

index f39c2d2..49fee82 100644 (file)
@@ -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
index a17599a..b21737f 100644 (file)
@@ -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;