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

login
register
mail settings
Submitter Michael Meissner
Date Nov. 17, 2010, 6:33 p.m.
Message ID <20101117183321.GA14770@hungry-tiger.westford.ibm.com>
Download mbox | patch
Permalink /patch/71611/
State New
Headers show

Comments

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

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