summaryrefslogtreecommitdiff
path: root/bfd/cpu-z8k.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2002-09-02 11:52:01 +0000
committerAlan Modra <amodra@bigpond.net.au>2002-09-02 11:52:01 +0000
commitc041ee5eeaacd4f804a4396bed2ba0ccf413109e (patch)
treee9f1b6e4b0081168efac60a989120bf441a00ead /bfd/cpu-z8k.c
parent83290f80401e71681e85a0d5430d47306cff866c (diff)
downloadbinutils-redhat-c041ee5eeaacd4f804a4396bed2ba0ccf413109e.tar.gz
* 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.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/bfd/cpu-z8k.c b/bfd/cpu-z8k.c
index 0afdfc7560..b75eaeafd5 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]
};