diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-12-01 17:27:11 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-12-01 17:27:11 +0000 |
commit | ede75ee868a7e0e4515f39851b41839e69ec8f50 (patch) | |
tree | 3eb627dfd5fd1a76c0dc695d8c1a980f476651cc /gcc | |
parent | 6ac7bf2c9e4b7f4e5d3b036c0bf1f4533e9a8252 (diff) | |
download | gcc-ede75ee868a7e0e4515f39851b41839e69ec8f50.zip gcc-ede75ee868a7e0e4515f39851b41839e69ec8f50.tar.gz gcc-ede75ee868a7e0e4515f39851b41839e69ec8f50.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.c | 4 | ||||
-rw-r--r-- | gcc/config/m88k/m88k.c | 6 | ||||
-rw-r--r-- | gcc/config/mcore/mcore.c | 4 | ||||
-rw-r--r-- | gcc/config/sh/sh.c | 4 | ||||
-rw-r--r-- | gcc/config/sparc/sparc.c | 5 |
6 files changed, 29 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b9402fa..460b8a9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index c78b84f..882019e 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 adcf5c1..7de5af6 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 fc68ff3..efe052f 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 1696845..3b586dd 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 618a5c0..056b875 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 */ |