h8300.c (h8300_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sat, 1 Dec 2001 17:27:11 +0000 (17:27 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sat, 1 Dec 2001 17:27:11 +0000 (17:27 +0000)
* h8300.c (h8300_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
* m88k.c (m88k_svr3_asm_out_constructor,
m88k_svr3_asm_out_destructor): Wrap with CTOR_LIST_BEGIN &&
!OBJECT_FORMAT_ELF.
* mcore.c (mcore_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
* sh.c (sh_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
* sparc.c (sparc_elf_asm_named_section): Wrap with OBJECT_FORMAT_ELF.

From-SVN: r47515

gcc/ChangeLog
gcc/config/h8300/h8300.c
gcc/config/m88k/m88k.c
gcc/config/mcore/mcore.c
gcc/config/sh/sh.c
gcc/config/sparc/sparc.c

index b9402fae69d51e98a03960b72bd77a32633c5ff6..460b8a9d36a72b6c1b8b939622af3875a604da93 100644 (file)
@@ -1,3 +1,13 @@
+2001-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * h8300.c (h8300_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
+       * m88k.c (m88k_svr3_asm_out_constructor,
+       m88k_svr3_asm_out_destructor): Wrap with CTOR_LIST_BEGIN &&
+       !OBJECT_FORMAT_ELF.
+       * mcore.c (mcore_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
+       * sh.c (sh_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
+       * sparc.c (sparc_elf_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
+
 2001-12-01  Geoff Keating  <geoffk@redhat.com>
 
        * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Complex
index c78b84f3895788f3e24830d364924e1b245e749c..882019eff1ca8c7e47d0a828b48a0c393a5aa220 100644 (file)
@@ -59,7 +59,9 @@ static tree h8300_handle_eightbit_data_attribute PARAMS ((tree *, tree, tree, in
 static tree h8300_handle_tiny_data_attribute PARAMS ((tree *, tree, tree, int, bool *));
 static void h8300_output_function_prologue PARAMS ((FILE *, HOST_WIDE_INT));
 static void h8300_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
+#ifndef OBJECT_FORMAT_ELF
 static void h8300_asm_named_section PARAMS ((const char *, unsigned int));
+#endif
 
 /* CPU_TYPE, says what cpu we're compiling for.  */
 int cpu_type;
@@ -3473,6 +3475,7 @@ h8300_adjust_insn_length (insn, length)
   return 0;
 }
 
+#ifndef OBJECT_FORMAT_ELF
 static void
 h8300_asm_named_section (name, flags)
      const char *name;
@@ -3481,3 +3484,4 @@ h8300_asm_named_section (name, flags)
   /* ??? Perhaps we should be using default_coff_asm_named_section.  */
   fprintf (asm_out_file, "\t.section %s\n", name);
 }
+#endif /* ! OBJECT_FORMAT_ELF */
index adcf5c19f35f6a8d2e549ccda402efc96edc4c5e..7de5af67252f9b49ec078080bf05e0fe3dbc2d5d 100644 (file)
@@ -68,7 +68,7 @@ static void m88k_output_function_prologue PARAMS ((FILE *, HOST_WIDE_INT));
 static void m88k_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
 static void m88k_output_function_end_prologue PARAMS ((FILE *));
 static void m88k_output_function_begin_epilogue PARAMS ((FILE *));
-#ifdef INIT_SECTION_ASM_OP
+#if defined (CTOR_LIST_BEGIN) && !defined (OBJECT_FORMAT_ELF)
 static void m88k_svr3_asm_out_constructor PARAMS ((rtx, int));
 static void m88k_svr3_asm_out_destructor PARAMS ((rtx, int));
 #endif
@@ -3292,7 +3292,7 @@ symbolic_operand (op, mode)
     }
 }
 
-#ifdef INIT_SECTION_ASM_OP
+#if defined (CTOR_LIST_BEGIN) && !defined (OBJECT_FORMAT_ELF)
 static void
 m88k_svr3_asm_out_constructor (symbol, priority)
      rtx symbol;
@@ -3321,7 +3321,7 @@ m88k_svr3_asm_out_destructor (symbol, priority)
   for (i = 1; i < 4; i++)
     assemble_integer (constm1_rtx, UNITS_PER_WORD, BITS_PER_WORD, 1);
 }
-#endif
+#endif /* INIT_SECTION_ASM_OP && ! OBJECT_FORMAT_ELF */
 
 /* Adjust the cost of INSN based on the relationship between INSN that
    is dependent on DEP_INSN through the dependence LINK.  The default
index fc68ff3d5aeef4b44bc867bdd8dc70f1b6f37cf8..efe052f45300b8d2276570344995860a5dd10f83 100644 (file)
@@ -133,8 +133,10 @@ static int        mcore_dllexport_p            PARAMS ((tree));
 static int        mcore_dllimport_p            PARAMS ((tree));
 const struct attribute_spec mcore_attribute_table[];
 static tree       mcore_handle_naked_attribute PARAMS ((tree *, tree, tree, int, bool *));
+#ifdef OBJECT_FORMAT_ELF
 static void      mcore_asm_named_section      PARAMS ((const char *,
                                                        unsigned int));
+#endif
 \f
 /* Initialize the GCC target structure.  */
 #ifdef TARGET_DLLIMPORT_DECL_ATTRIBUTES
@@ -3544,6 +3546,7 @@ mcore_naked_function_p ()
   return lookup_attribute ("naked", DECL_ATTRIBUTES (current_function_decl)) != NULL_TREE;
 }
 
+#ifdef OBJECT_FORMAT_ELF
 static void
 mcore_asm_named_section (name, flags)
      const char *name;
@@ -3551,3 +3554,4 @@ mcore_asm_named_section (name, flags)
 {
   fprintf (asm_out_file, "\t.section %s\n", name);
 }
+#endif /* OBJECT_FORMAT_ELF */
index 169684529fe67612daea608c25db20fc53a21940..3b586dd4c63805a85d7a32808b6879abdf45113e 100644 (file)
@@ -161,7 +161,9 @@ static tree sh_handle_sp_switch_attribute PARAMS ((tree *, tree, tree, int, bool
 static tree sh_handle_trap_exit_attribute PARAMS ((tree *, tree, tree, int, bool *));
 static void sh_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
 static void sh_insert_attributes PARAMS ((tree, tree *));
+#ifndef OBJECT_FORMAT_ELF
 static void sh_asm_named_section PARAMS ((const char *, unsigned int));
+#endif
 static int sh_adjust_cost PARAMS ((rtx, rtx, rtx, int));
 \f
 /* Initialize the GCC target structure.  */
@@ -5631,6 +5633,7 @@ sh_can_redirect_branch (branch1, branch2)
   return 0;
 }
 
+#ifndef OBJECT_FORMAT_ELF
 static void
 sh_asm_named_section (name, flags)
      const char *name;
@@ -5639,6 +5642,7 @@ sh_asm_named_section (name, flags)
   /* ??? Perhaps we should be using default_coff_asm_named_section.  */
   fprintf (asm_out_file, "\t.section %s\n", name);
 }
+#endif /* ! OBJECT_FORMAT_ELF */
 
 /* A C statement (sans semicolon) to update the integer variable COST
    based on the relationship between INSN that is dependent on
index 618a5c07d14c1bc51d096a6ca0f110390432c5e7..056b875d2b96772eea4bf322b94a40f8a5d178fa 100644 (file)
@@ -167,8 +167,9 @@ static void sparc_nonflat_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT,
                                                     int));
 static void sparc_nonflat_function_prologue PARAMS ((FILE *, HOST_WIDE_INT,
                                                     int));
+#ifdef OBJECT_FORMAT_ELF
 static void sparc_elf_asm_named_section PARAMS ((const char *, unsigned int));
-
+#endif
 static void ultrasparc_sched_reorder PARAMS ((FILE *, int, rtx *, int));
 static int ultrasparc_variable_issue PARAMS ((rtx));
 static void ultrasparc_sched_init PARAMS ((void));
@@ -8739,6 +8740,7 @@ sparc_add_gc_roots ()
                sizeof (ultra_pipe_hist[0]), &mark_ultrasparc_pipeline_state);
 }
 
+#ifdef OBJECT_FORMAT_ELF
 static void
 sparc_elf_asm_named_section (name, flags)
      const char *name;
@@ -8765,3 +8767,4 @@ sparc_elf_asm_named_section (name, flags)
 
   fputc ('\n', asm_out_file);
 }
+#endif /* OBJECT_FORMAT_ELF */