We dropped support for COFF from the H8 port over 10 years ago.  These tidbits
were missed.

Committing to the trunk,

Jeff
commit 7764bebb9f772337bcb065aa290ca355083e31ce
Author: Jeff Law <l...@redhat.com>
Date:   Thu Apr 23 13:10:48 2020 -0600

    Drop remnants of COFF support

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.  */
 

Reply via email to