diff mbox

Add attribute((target("..."))) and pragma target to PowerPC

Message ID 20101117183321.GA14770@hungry-tiger.westford.ibm.com
State New
Headers show

Commit Message

Michael Meissner Nov. 17, 2010, 6:33 p.m. UTC
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.
diff mbox

Patch

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