From: Kaveh R. Ghazi Date: Sat, 1 Dec 2001 17:27:11 +0000 (+0000) Subject: h8300.c (h8300_asm_named_section): Wrap with !OBJECT_FORMAT_ELF. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ede75ee868a7e0e4515f39851b41839e69ec8f50;p=gcc.git h8300.c (h8300_asm_named_section): Wrap with !OBJECT_FORMAT_ELF. * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b9402fae69d..460b8a9d36a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2001-12-01 Kaveh R. Ghazi + + * 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 * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Complex diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index c78b84f3895..882019eff1c 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -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 */ diff --git a/gcc/config/m88k/m88k.c b/gcc/config/m88k/m88k.c index adcf5c19f35..7de5af67252 100644 --- a/gcc/config/m88k/m88k.c +++ b/gcc/config/m88k/m88k.c @@ -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 diff --git a/gcc/config/mcore/mcore.c b/gcc/config/mcore/mcore.c index fc68ff3d5ae..efe052f4530 100644 --- a/gcc/config/mcore/mcore.c +++ b/gcc/config/mcore/mcore.c @@ -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 /* 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 */ diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 169684529fe..3b586dd4c63 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -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)); /* 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 diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 618a5c07d14..056b875d2b9 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -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 */