From patchwork Wed Nov 17 18:33:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Add attribute((target("..."))) and pragma target to PowerPC Date: Wed, 17 Nov 2010 08:33:21 -0000 From: Michael Meissner X-Patchwork-Id: 71611 Message-Id: <20101117183321.GA14770@hungry-tiger.westford.ibm.com> To: Michael Meissner , "Joseph S. Myers" , gcc-patches@gcc.gnu.org, dje.gcc@gmail.com 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 * 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