Check the correct arch_info object's mach field: all PowerPC machines are
authorNick Clifton <nickc@redhat.com>
Thu, 30 Oct 2003 12:01:08 +0000 (12:01 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 30 Oct 2003 12:01:08 +0000 (12:01 +0000)
supersets of the original rs6000, but not later rs6000 machines.

bfd/ChangeLog
bfd/cpu-rs6000.c

index 05e8f130f4383504e3573a0208166a8fe598c2a8..4728081613e403d48b0852ef1cddf5945f77c7b2 100644 (file)
@@ -1,3 +1,9 @@
+2003-10-30  Jim Blandy  <jimb@redhat.com>
+
+       * 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  <amodra@bigpond.net.au>
 
        * dwarf2.c (struct attribute): Delete "unsnd", "snd" and "addr".
index 63df554dca65b67e66a8c3b5d8de75d87dcd0848..03d3e7d021fd377145eebbce34ca90a748cf8eb8 100644 (file)
@@ -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;
     }