@@ -118,8 +118,11 @@ compatible (const bfd_arch_info_type *in, const bfd_arch_info_type *out)
{ word, addr, 8, bfd_arch_h8300, number, name, print, 1, default, \
compatible, h8300_scan, bfd_arch_default_fill, next, 0 }
+static const bfd_arch_info_type h8300_info_struct =
+ N (16, 16, bfd_mach_h8300, "h8300", "h8300", false, NULL);
+
static const bfd_arch_info_type h8300sxn_info_struct =
- N (32, 16, bfd_mach_h8300sxn, "h8300sxn", "h8300sxn", false, NULL);
+ N (32, 16, bfd_mach_h8300sxn, "h8300sxn", "h8300sxn", false, &h8300_info_struct);
static const bfd_arch_info_type h8300sx_info_struct =
N (32, 32, bfd_mach_h8300sx, "h8300sx", "h8300sx", false, &h8300sxn_info_struct);
@@ -133,11 +136,8 @@ static const bfd_arch_info_type h8300hn_info_struct =
static const bfd_arch_info_type h8300s_info_struct =
N (32, 32, bfd_mach_h8300s, "h8300s", "h8300s", false, & h8300hn_info_struct);
-static const bfd_arch_info_type h8300h_info_struct =
- N (32, 32, bfd_mach_h8300h, "h8300h", "h8300h", false, &h8300s_info_struct);
-
const bfd_arch_info_type bfd_h8300_arch =
- N (16, 16, bfd_mach_h8300, "h8300", "h8300", true, &h8300h_info_struct);
+ N (32, 32, bfd_mach_h8300h, "h8300h", "h8300h", true, &h8300s_info_struct);
/* Pad the given address to 32 bits, converting 16-bit and 24-bit
addresses into the values they would have had on a h8s target. */
@@ -24,6 +24,10 @@
* Add support for RISC-V vendor extensions:
SpacemiT: xsmtvdot v1.0, xsmtvdotii v1.0.
+* Change the default architecture for H8 family from H8/300 to H8/300H.
+ Support for H8/300 was removed from gcc in 2020, making H8/300H the
+ default architecture.
+
Changes in 2.46:
* Add support for AMD Zen6 processor.
@@ -52,7 +52,7 @@ int Smode;
int Nmode;
int SXmode;
-static int default_mach = bfd_mach_h8300;
+static int default_mach = bfd_mach_h8300h;
#define PSIZE (Hmode && !Nmode ? L_32 : L_16)
@@ -15,6 +15,10 @@ Changes in 2.47:
not only XCOFF. On by default and controlled with --no-link-mapless and
--link-mapless options, also for XCOFF.
+* Change the default architecture for H8 family from H8/300 to H8/300H.
+ Support for H8/300 was removed from gcc in 2020, making H8/300H the
+ default architecture.
+
Changes in 2.46:
* Add --gnu-tls-tag/--no-gnu-tls-tag options to i386 ELF linker to add
@@ -313,8 +313,8 @@ ft32-*-*) targ_emul=elf32ft32
targ_extra_ofiles=ldelfgen.o
;;
h8300-*-elf* | h8300-*-rtems*)
- targ_emul=h8300elf;
- targ_extra_emuls="h8300helf h8300self h8300hnelf h8300snelf h8300sxelf h8300sxnelf"
+ targ_emul=h8300helf;
+ targ_extra_emuls="h8300self h8300hnelf h8300snelf h8300sxelf h8300sxnelf h8300elf"
;;
h8300-*-linux*)
targ_emul=h8300elf_linux;