diff options
author | Alan Modra <amodra@gmail.com> | 2002-09-02 11:52:01 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-09-02 11:52:01 +0000 |
commit | 638524b534054974ce5d64b08463e3e61f0d1996 (patch) | |
tree | d1f6a63fe42bb0e9039b229ec7ba7d3796799369 /bfd/cpu-z8k.c | |
parent | 250d94fd4b15ec8846f60f531fad5d504932d9fa (diff) | |
download | gdb-638524b534054974ce5d64b08463e3e61f0d1996.zip gdb-638524b534054974ce5d64b08463e3e61f0d1996.tar.gz gdb-638524b534054974ce5d64b08463e3e61f0d1996.tar.bz2 |
* cpu-pj.c (scan_mach, compatible, arch_info_struct): Remove.
(bfd_pj_arch): Use bfd_default_scan.
* cpu-v850.c (scan): Remove.
(N): Use bfd_default_scan.
* cpu-z8k.c (scan_mach): Remove.
(arch_info_struct, bfd_z8k_arch): Reorganize so that the default is
first. Use bfd_default_scan.
Diffstat (limited to 'bfd/cpu-z8k.c')
-rw-r--r-- | bfd/cpu-z8k.c | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/bfd/cpu-z8k.c b/bfd/cpu-z8k.c index 0afdfc7..b75eaea 100644 --- a/bfd/cpu-z8k.c +++ b/bfd/cpu-z8k.c @@ -22,8 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "sysdep.h" #include "libbfd.h" -static boolean scan_mach - PARAMS ((const struct bfd_arch_info *, const char *)); static const bfd_arch_info_type *compatible PARAMS ((const bfd_arch_info_type *, const bfd_arch_info_type *)); @@ -153,22 +151,6 @@ local_bfd_reloc_type_lookup (arch, code) } #endif -static boolean -scan_mach (info, string) - const struct bfd_arch_info *info; - const char *string; -{ - if (strcmp (string, "z8001") == 0 || strcmp (string, "z8k") == 0) - { - return bfd_mach_z8001 == info->mach; - } - if (strcmp (string, "z8002") == 0) - { - return bfd_mach_z8002 == info->mach; - } - return false; -} - /* This routine is provided two arch_infos and returns whether they'd be compatible */ @@ -184,10 +166,12 @@ compatible (a, b) static const bfd_arch_info_type arch_info_struct[] = { - {32, 32, 8, bfd_arch_z8k, bfd_mach_z8001, "z8k", "z8001", 1, false, compatible, scan_mach, 0,}, + { 32, 16, 8, bfd_arch_z8k, bfd_mach_z8002, "z8k", "z8002", 1, false, + compatible, bfd_default_scan, 0 } }; const bfd_arch_info_type bfd_z8k_arch = { - 32, 16, 8, bfd_arch_z8k, bfd_mach_z8002, "z8k", "z8002", 1, true, compatible, scan_mach, &arch_info_struct[0], + 32, 32, 8, bfd_arch_z8k, bfd_mach_z8001, "z8k", "z8001", 1, true, + compatible, bfd_default_scan, &arch_info_struct[0] }; |