[PATCH] Add attribute((target("..."))) and pragma target to PowerPC

Michael Meissner meissner@linux.vnet.ibm.com
Wed Nov 17 19:24:00 GMT 2010


David said in a private IRC that I should more properly use -maix64/-maix32
when the target is AIX rather than Linux.  This patch on top of the others
fixes this oversight.

2010-11-17  Michael Meissner  <meissner@linux.vnet.ibm.com>

	* config/rs6000/rs6000.c (rs6000_opt_masks): Add -maix64/-maix32
	support if the target is AIX instead of -m64/-m32.

Index: gcc/config/rs6000/rs6000.c
===================================================================
--- gcc/config/rs6000/rs6000.c	(revision 166873)
+++ gcc/config/rs6000/rs6000.c	(working copy)
@@ -27380,9 +27380,14 @@ static struct rs6000_opt_mask const rs60
   { "string",		MASK_STRING,		false, true  },
   { "vsx",		MASK_VSX,		false, true  },
 #ifdef MASK_64BIT
+#if TARGET_AIX_OS
+  { "aix64",		MASK_64BIT,		false, false },
+  { "aix32",		MASK_64BIT,		true,  false },
+#else
   { "64",		MASK_64BIT,		false, false },
   { "32",		MASK_64BIT,		true,  false },
 #endif
+#endif
 #ifdef MASK_EABI
   { "eabi",		MASK_EABI,		false, false },
 #endif

-- 
Michael Meissner, IBM
5 Technology Place Drive, M/S 2757, Westford, MA 01886-3141, USA
meissner@linux.vnet.ibm.com	fax +1 (978) 399-6899



More information about the Gcc-patches mailing list