X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Fcpu-m68hc12.c;h=15b41c75b750ba5fdc4b8781f3555177c1a10bbc;hb=17524e099d937606f0953c546ecd8fc6f246126c;hp=2a115b991706418dd25f6b14ef726419955fb283;hpb=aa820537ead0135a7c38c619039dce8a6fc74ed1;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/cpu-m68hc12.c b/bfd/cpu-m68hc12.c index 2a115b9917..15b41c75b7 100644 --- a/bfd/cpu-m68hc12.c +++ b/bfd/cpu-m68hc12.c @@ -1,5 +1,5 @@ /* BFD support for the Motorola 68HC12 processor - Copyright 1999, 2000, 2002, 2003, 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 1999-2019 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -22,34 +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, - 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_m68hc12s_arch, -}; + N (bfd_mach_m6812_default, "m68hc12", TRUE, &bfd_m68hc12s_arch); +