aboutsummaryrefslogtreecommitdiff
path: root/bfd/archures.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-03-13 07:30:45 +0000
committerAlan Modra <amodra@gmail.com>2002-03-13 07:30:45 +0000
commitb74fa2cd15f80f123495fad4f2f3edc092e90138 (patch)
treee00414ad41207813dd45f5e4976c87b28b3585ca /bfd/archures.c
parentfa7ea4d86407b3674af92cacfac9afddc8819a1f (diff)
downloadgdb-b74fa2cd15f80f123495fad4f2f3edc092e90138.zip
gdb-b74fa2cd15f80f123495fad4f2f3edc092e90138.tar.gz
gdb-b74fa2cd15f80f123495fad4f2f3edc092e90138.tar.bz2
* archures.c (bfd_default_compatible): Test bits_per_word.
* cpu-i386.c (i386_compatible): Remove. Replace occurrences with bfd_default_compatible. * cpu-i370.c (i370_compatible): Likewise. * cpu-sparc.c (sparc_compatible): Likewise. * cpu-h8300.c (compatible): Test in->arch == out->arch.
Diffstat (limited to 'bfd/archures.c')
-rw-r--r--bfd/archures.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/archures.c b/bfd/archures.c
index fb2ba9b..9a91424 100644
--- a/bfd/archures.c
+++ b/bfd/archures.c
@@ -722,6 +722,9 @@ bfd_default_compatible (a, b)
if (a->arch != b->arch)
return NULL;
+ if (a->bits_per_word != b->bits_per_word)
+ return NULL;
+
if (a->mach > b->mach)
return a;