From patchwork Wed Nov 17 18:33:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Meissner X-Patchwork-Id: 71611 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id EB901B71A0 for ; Thu, 18 Nov 2010 05:33:39 +1100 (EST) Received: (qmail 21416 invoked by alias); 17 Nov 2010 18:33:31 -0000 Received: (qmail 21391 invoked by uid 22791); 17 Nov 2010 18:33:30 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL, BAYES_00, NO_DNS_FOR_FROM, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e3.ny.us.ibm.com (HELO e3.ny.us.ibm.com) (32.97.182.143) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 17 Nov 2010 18:33:26 +0000 Received: from d01relay03.pok.ibm.com (d01relay03.pok.ibm.com [9.56.227.235]) by e3.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id oAHIFs4T016945 for ; Wed, 17 Nov 2010 13:15:54 -0500 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay03.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id oAHIXONv345254 for ; Wed, 17 Nov 2010 13:33:24 -0500 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id oAHIXNk8010185 for ; Wed, 17 Nov 2010 13:33:23 -0500 Received: from hungry-tiger.westford.ibm.com (dyn9033037049.westford.ibm.com [9.33.37.49]) by d01av04.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id oAHIXNEe010165; Wed, 17 Nov 2010 13:33:23 -0500 Received: by hungry-tiger.westford.ibm.com (Postfix, from userid 500) id AD5BBF7F91; Wed, 17 Nov 2010 13:33:22 -0500 (EST) Date: Wed, 17 Nov 2010 13:33:21 -0500 From: Michael Meissner To: Michael Meissner , "Joseph S. Myers" , gcc-patches@gcc.gnu.org, dje.gcc@gmail.com Subject: Re: [PATCH] Add attribute((target("..."))) and pragma target to PowerPC Message-ID: <20101117183321.GA14770@hungry-tiger.westford.ibm.com> Mail-Followup-To: Michael Meissner , "Joseph S. Myers" , gcc-patches@gcc.gnu.org, dje.gcc@gmail.com References: <20101031182504.GA14215@hungry-tiger.westford.ibm.com> <20101101174906.GA8243@hungry-tiger.westford.ibm.com> <20101101231522.GA22461@hungry-tiger.westford.ibm.com> <20101117172112.GA4915@hungry-tiger.westford.ibm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20101117172112.GA4915@hungry-tiger.westford.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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