From: Jeff Law Date: Thu, 7 May 2020 21:10:42 +0000 (-0400) Subject: Remove remnants of COFF support which was dropped eons ago. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f69785246f28e9d82b5c2c96ecbef17c280142ca;p=gcc.git Remove remnants of COFF support which was dropped eons ago. * config/h8300/h8300.c (h8300_asm_named_section): Remove. (h8300_option_override): Remove remnants of COFF support. --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0a30ea3a184..c2382f7f2d1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2020-05-07 Jeff Law + + * config/h8300/h8300.c (h8300_asm_named_section): Remove. + (h8300_option_override): Remove remnants of COFF support. + 2020-05-07 Alan Modra * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Replace diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index d2fea04d8e4..2c51c7c2955 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -102,9 +102,6 @@ static tree h8300_handle_tiny_data_attribute (tree *, tree, tree, int, bool *); static void h8300_print_operand_address (FILE *, machine_mode, rtx); static void h8300_print_operand (FILE *, rtx, int); static bool h8300_print_operand_punct_valid_p (unsigned char code); -#ifndef OBJECT_FORMAT_ELF -static void h8300_asm_named_section (const char *, unsigned int, tree); -#endif static int h8300_register_move_cost (machine_mode, reg_class_t, reg_class_t); static int h8300_and_costs (rtx); static int h8300_shift_costs (rtx); @@ -323,14 +320,6 @@ h8300_option_override (void) static const char *const h8_pop_ops[2] = { "pop" , "pop.l" }; static const char *const h8_mov_ops[2] = { "mov.w", "mov.l" }; -#ifndef OBJECT_FORMAT_ELF - if (TARGET_H8300SX) - { - error ("%<-msx%> is not supported in coff"); - target_flags |= MASK_H8300S; - } -#endif - if (TARGET_H8300) { cpu_type = (int) CPU_H8300; @@ -5457,16 +5446,6 @@ h8300_reorg (void) shorten_branches (get_insns ()); } -#ifndef OBJECT_FORMAT_ELF -static void -h8300_asm_named_section (const char *name, unsigned int flags ATTRIBUTE_UNUSED, - tree decl) -{ - /* ??? Perhaps we should be using default_coff_asm_named_section. */ - fprintf (asm_out_file, "\t.section %s\n", name); -} -#endif /* ! OBJECT_FORMAT_ELF */ - /* Nonzero if X is a constant address suitable as an 8-bit absolute, which is a special case of the 'R' operand. */