RFC: another ppc/rs6k compatibility thing
Jim Blandy
jimb@redhat.com
Mon Nov 3 22:31:00 GMT 2003
This is the fixing the same compatibility relation as my previous
patch, just going the other way.
2003-11-03 Jim Blandy <jimb@redhat.com>
* cpu-powerpc.c (powerpc_compatible): Any member of the PowerPC
family is backward compatible with <bfd_arch_rs6000,bfd_mach_rs6k>.
Index: bfd/cpu-powerpc.c
===================================================================
RCS file: /cvs/src/src/bfd/cpu-powerpc.c,v
retrieving revision 1.13
diff -c -r1.13 cpu-powerpc.c
*** bfd/cpu-powerpc.c 30 Nov 2002 08:39:36 -0000 1.13
--- bfd/cpu-powerpc.c 3 Nov 2003 22:26:39 -0000
***************
*** 41,47 ****
case bfd_arch_powerpc:
return bfd_default_compatible (a, b);
case bfd_arch_rs6000:
! if (a->mach == bfd_mach_ppc)
return a;
return NULL;
}
--- 41,47 ----
case bfd_arch_powerpc:
return bfd_default_compatible (a, b);
case bfd_arch_rs6000:
! if (b->mach == bfd_mach_rs6k)
return a;
return NULL;
}
More information about the Binutils
mailing list