A couple of extensions for powerpc/e500

Alan Modra amodra@gmail.com
Mon Jun 14 14:48:00 GMT 2010


I looked at your patches but they caused a testsuite failure (you
didn't run the testsuite, did you?), and I was busy at the time so put
them aside.  Applied along with this extra patch.

	* config/tc-ppc.c (md_assemble): Emit APUinfo section for
	PPC_OPCODE_E500.

Index: gas/config/tc-ppc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ppc.c,v
retrieving revision 1.167
diff -u -p -r1.167 tc-ppc.c
--- gas/config/tc-ppc.c	25 May 2010 00:51:49 -0000	1.167
+++ gas/config/tc-ppc.c	14 Jun 2010 14:39:22 -0000
@@ -2908,7 +2908,7 @@ md_assemble (char *str)
 
 #ifdef OBJ_ELF
   /* Do we need/want a APUinfo section? */
-  if ((ppc_cpu & PPC_OPCODE_E500MC) != 0)
+  if ((ppc_cpu & (PPC_OPCODE_E500 | PPC_OPCODE_E500MC)) != 0)
     {
       /* These are all version "1".  */
       if (opcode->flags & PPC_OPCODE_SPE)

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list