X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bfd%2Fcpu-m68hc12.c;h=93870a425c807954534540b9a7dc0a507fe05527;hb=9ae6bf640dc7c950e6f36097a3d2d760a132a542;hp=566ab1e2b6e0641b1aa6fe6440e87245bbb36afc;hpb=2571583aed598dd3f9651b53434e5f177a0e3cf7;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/cpu-m68hc12.c b/bfd/cpu-m68hc12.c index 566ab1e2b6..93870a425c 100644 --- a/bfd/cpu-m68hc12.c +++ b/bfd/cpu-m68hc12.c @@ -1,5 +1,5 @@ /* BFD support for the Motorola 68HC12 processor - Copyright (C) 1999-2017 Free Software Foundation, Inc. + Copyright (C) 1999-2020 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -22,36 +22,27 @@ #include "bfd.h" #include "libbfd.h" +#define N(NUMBER, PRINT, DEFAULT, NEXT) \ + { \ + 16, /* Bits in a word. */ \ + 32, /* Bits in an address. */ \ + 8, /* Bits in a byte. */ \ + bfd_arch_m68hc12, \ + NUMBER, \ + "m68hc12", \ + PRINT, \ + 4, /* Section alignment power. */ \ + DEFAULT, \ + bfd_default_compatible, \ + bfd_default_scan, \ + bfd_arch_default_fill, \ + NEXT, \ + 0 /* Maximum offset of a reloc from the start of an insn. */ \ + } + const bfd_arch_info_type bfd_m68hc12s_arch = -{ - 16, /* 16 bits in a word */ - 32, /* 16 bits in an address */ - 8, /* 8 bits in a byte */ - bfd_arch_m68hc12, - bfd_mach_m6812s, - "m68hc12:HCS12", - "m68hc12", - 4, /* section alignment power */ - TRUE, - bfd_default_compatible, - bfd_default_scan, - bfd_arch_default_fill, - 0, -}; + N (bfd_mach_m6812s, "m68hc12:HCS12", FALSE, NULL); const bfd_arch_info_type bfd_m68hc12_arch = -{ - 16, /* 16 bits in a word */ - 32, /* 16 bits in an address */ - 8, /* 8 bits in a byte */ - bfd_arch_m68hc12, - 0, - "m68hc12", - "m68hc12", - 4, /* section alignment power */ - TRUE, - bfd_default_compatible, - bfd_default_scan, - bfd_arch_default_fill, - &bfd_m68hc12s_arch, -}; + N (bfd_mach_m6812_default, "m68hc12", TRUE, &bfd_m68hc12s_arch); +