From: Nick Clifton Date: Thu, 22 Nov 2001 09:59:43 +0000 (+0000) Subject: Only build arm_elf_asm_named_section for elf targets X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ebe413e5a0f32007760f9314422e03614778189b;p=gcc.git Only build arm_elf_asm_named_section for elf targets From-SVN: r47262 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f0440d58f1a..aa05e9601cf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2001-11-22 Nick Clifton + * config/arm/arm.c (arm_elf_asm_named_section): Only build for elf + targets. + * config.gcc (xscale-coff): Add necessary header files to tm_file variable. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index a394a978911..21442899fa0 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -114,8 +114,10 @@ static void thumb_output_function_prologue PARAMS ((FILE *, HOST_WIDE_INT)); static int arm_comp_type_attributes PARAMS ((tree, tree)); static void arm_set_default_type_attributes PARAMS ((tree)); +#ifdef OBJECT_FORMAT_ELF static void arm_elf_asm_named_section PARAMS ((const char *, unsigned int)); +#endif static int arm_adjust_cost PARAMS ((rtx, rtx, rtx, int)); #undef Hint @@ -954,7 +956,8 @@ const_ok_for_arm (i) mask = (mask << 2) | ((mask & (unsigned HOST_WIDE_INT) 0xffffffff) >> (32 - 2)) | ~(unsigned HOST_WIDE_INT) 0xffffffff; - } while (mask != ~(unsigned HOST_WIDE_INT) 0xFF); + } + while (mask != ~(unsigned HOST_WIDE_INT) 0xFF); return FALSE; } @@ -10833,6 +10836,7 @@ aof_dump_imports (f) } #endif /* AOF_ASSEMBLER */ +#ifdef OBJECT_FORMAT_ELF /* Switch to an arbitrary section NAME with attributes as specified by FLAGS. ALIGN specifies any known alignment requirements for the section; 0 if the default should be used. @@ -10874,3 +10878,4 @@ arm_elf_asm_named_section (name, flags) fprintf (asm_out_file, "\t.section\t%s,\"%s\",%%%s\n", name, flagchars, type); } +#endif