From: Nick Clifton Date: Thu, 30 Oct 2003 12:01:08 +0000 (+0000) Subject: Check the correct arch_info object's mach field: all PowerPC machines are X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f8b3ef37bb717cf25bfe766ba87e0c4dc19d633;p=binutils-gdb.git Check the correct arch_info object's mach field: all PowerPC machines are supersets of the original rs6000, but not later rs6000 machines. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 05e8f130f43..4728081613e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2003-10-30 Jim Blandy + + * cpu-rs6000.c (rs6000_compatible): Check the correct arch_info + object's mach field: all PowerPC machines are supersets of the + original rs6000, but not later rs6000 machines. + 2003-10-30 Alan Modra * dwarf2.c (struct attribute): Delete "unsnd", "snd" and "addr". diff --git a/bfd/cpu-rs6000.c b/bfd/cpu-rs6000.c index 63df554dca6..03d3e7d021f 100644 --- a/bfd/cpu-rs6000.c +++ b/bfd/cpu-rs6000.c @@ -47,7 +47,7 @@ rs6000_compatible (a,b) case bfd_arch_rs6000: return bfd_default_compatible (a, b); case bfd_arch_powerpc: - if (b->mach == bfd_mach_rs6k) + if (a->mach == bfd_mach_rs6k) return b; return NULL; }