From e56feed63f79d09e94d6ad97b6a9ed618d6e6234 Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Sun, 21 Oct 2001 21:55:40 +0000 Subject: [PATCH] i386.c (sco_asm_named_section): Delete. * config/i386/i386.c (sco_asm_named_section): Delete. (sco_asm_out_constructor): Delete. * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h. (ASM_OUTPUT_DOUBLE_INT): Likewise. (TARGET_ASM_CONSTRUCTOR): Delete. Use default. (TARGET_ASM_NAMED_SECTION): Use default for ELF. (EXCEPTION_SECTION): Delete EH scn renaming hack. From-SVN: r46398 --- gcc/ChangeLog | 10 ++++++++++ gcc/config/i386/i386.c | 29 +---------------------------- gcc/config/i386/sco5.h | 11 +++-------- 3 files changed, 14 insertions(+), 36 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d98daf8de7f..e1fe57c9391 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2001-10-21 Robert Lipe + + * config/i386/i386.c (sco_asm_named_section): Delete. + (sco_asm_out_constructor): Delete. + * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h. + (ASM_OUTPUT_DOUBLE_INT): Likewise. + (TARGET_ASM_CONSTRUCTOR): Delete. Use default. + (TARGET_ASM_NAMED_SECTION): Use default for ELF. + (EXCEPTION_SECTION): Delete EH scn renaming hack. + 2001-10-21 Kaveh R. Ghazi * c-format.c (maybe_read_dollar_number): Use safe-ctype macros diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index c08d1302a45..17319890eb7 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -695,10 +695,7 @@ static tree ix86_handle_regparm_attribute PARAMS ((tree *, tree, tree, int, bool #ifdef DO_GLOBAL_CTORS_BODY static void ix86_svr3_asm_out_constructor PARAMS ((rtx, int)); #endif -#if defined(TARGET_ELF) && defined(TARGET_COFF) -static void sco_asm_named_section PARAMS ((const char *, unsigned int)); -static void sco_asm_out_constructor PARAMS ((rtx, int)); -#endif + /* Register class used for passing given 64bit part of the argument. These represent classes as documented by the PS ABI, with the exception of SSESF, SSEDF classes, that are basically SSE class, just gcc will @@ -12456,27 +12453,3 @@ ix86_svr3_asm_out_constructor (symbol, priority) fputc ('\n', asm_out_file); } #endif - -#if defined(TARGET_ELF) && defined(TARGET_COFF) -static void -sco_asm_named_section (name, flags) - const char *name; - unsigned int flags; -{ - if (TARGET_ELF) - default_elf_asm_named_section (name, flags); - else - default_coff_asm_named_section (name, flags); -} - -static void -sco_asm_out_constructor (symbol, priority) - rtx symbol; - int priority; -{ - if (TARGET_ELF) - default_named_section_asm_out_constrctor (symbol, priority); - else - ix86_svr3_asm_out_constructor (symbol, priority); -} -#endif diff --git a/gcc/config/i386/sco5.h b/gcc/config/i386/sco5.h index b40651282df..ca7d6c8b88d 100644 --- a/gcc/config/i386/sco5.h +++ b/gcc/config/i386/sco5.h @@ -60,7 +60,7 @@ Boston, MA 02111-1307, USA. */ #define ASM_LONG "\t.long\t" #undef ASM_QUAD -#define ASM_QUAD "\t.quad\t" /* Should not be used for 32bit compilation. */ +#undef ASM_OUTPUT_DOUBLE_INT #undef TYPE_ASM_OP #define TYPE_ASM_OP "\t.type\t" @@ -384,9 +384,6 @@ do { \ ASM_OUTPUT_INTERNAL_LABEL((FILE),(PREFIX),(NUM)); \ } while (0) -#undef TARGET_ASM_CONSTRUCTOR -#define TARGET_ASM_CONSTRUCTOR sco_asm_out_constructor - #undef ASM_OUTPUT_IDENT #define ASM_OUTPUT_IDENT(FILE, NAME) \ fprintf (FILE, "%s\"%s\"\n", IDENT_ASM_OP, NAME); @@ -412,11 +409,10 @@ do { \ * We rename 'gcc_except_table' to the shorter name in preparation * for the day when we're ready to do DWARF2 eh unwinding under COFF. */ -#define EXCEPTION_SECTION() named_section (NULL, ".gccexc", 1) +/* #define EXCEPTION_SECTION() named_section (NULL, ".gccexc", 1) */ /* Switch into a generic section. */ -#undef TARGET_ASM_NAMED_SECTION -#define TARGET_ASM_NAMED_SECTION sco_asm_named_section +#define TARGET_ASM_NAMED_SECTION default_elf_asm_named_section #undef ASM_OUTPUT_SKIP #define ASM_OUTPUT_SKIP(FILE,SIZE) \ @@ -775,7 +771,6 @@ init_section () \ "%{!shared:-lgcc}" #define MASK_COFF 010000000000 /* Mask for elf generation */ -#define TARGET_COFF (target_flags & MASK_COFF) #define TARGET_ELF (1) /* (!(target_flags & MASK_COFF)) */ #undef SUBTARGET_SWITCHES