From patchwork Fri Dec 30 23:42:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Meissner X-Patchwork-Id: 133701 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 7121CB6FC9 for ; Sat, 31 Dec 2011 10:42:46 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1325893368; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Received:Received:Date:From:To:Subject: Message-ID:Mail-Followup-To:MIME-Version:Content-Type: Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=cNWA45392qMMkz3aebrCTu+KX+Q=; b=ogFPtJdYfp5gOMA 8ixFbggr9fQHyouQXvLsaAEyFdPaIgF4qcn4IcCQ6ZTdtZw5m4sR3KWbYpHVxsSQ 6PyybAg0Ij0cZLKJRrutwHfG4EQH9g3wmn+f7S8n8nWUKcWO/l/UQOePhwUH6mo/ UbCbTJxc8c7uJLZGl3dfTvyuWHNo= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Received:Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:MIME-Version:Content-Type:Content-Disposition:User-Agent:x-cbid:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=ulQqpLplvAKSz75zrSPa5yNHEKGoUoBpRG/BqxWFxgGjioGC+snEBNp2vDERFW whcXw2k6dJglkT8W2H2c60zj+4hL1djlTFtfnK1dmk7U4DGe6Shtd1Q5VQFJkjB0 Vez9m3hfkf+OcSqZS54+gflptwRgLxKRFV1rFX06H1rOA=; Received: (qmail 15710 invoked by alias); 30 Dec 2011 23:42:42 -0000 Received: (qmail 15702 invoked by uid 22791); 30 Dec 2011 23:42:41 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from e9.ny.us.ibm.com (HELO e9.ny.us.ibm.com) (32.97.182.139) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 30 Dec 2011 23:42:28 +0000 Received: from /spool/local by e9.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 30 Dec 2011 18:42:26 -0500 Received: from d01relay05.pok.ibm.com (9.56.227.237) by e9.ny.us.ibm.com (192.168.1.109) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 30 Dec 2011 18:42:25 -0500 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay05.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pBUNgOiW257918 for ; Fri, 30 Dec 2011 18:42:24 -0500 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pBUNgODl020177 for ; Fri, 30 Dec 2011 21:42:24 -0200 Received: from ibm-tiger.the-meissners.org ([9.33.37.223]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id pBUNgN1R020141; Fri, 30 Dec 2011 21:42:24 -0200 Received: by ibm-tiger.the-meissners.org (Postfix, from userid 500) id 0D11C444B5; Fri, 30 Dec 2011 18:42:21 -0500 (EST) Date: Fri, 30 Dec 2011 18:42:21 -0500 From: Michael Meissner To: gcc-patches@gcc.gnu.org, dje.gcc@gmail.com Subject: [PATCH, committed] Fix thinko in powerpc target function pragma/attribute Message-ID: <20111230234221.GA3130@ibm-tiger.the-meissners.org> Mail-Followup-To: Michael Meissner , gcc-patches@gcc.gnu.org, dje.gcc@gmail.com MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) x-cbid: 11123023-7182-0000-0000-000000784B4C 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 In working on something else, I was using the target pragmas I added in late November, and I noticed that I had a thinko in setting some of the options like -mfriz that aren't bitmasks. I committed the patch as obvious: 2011-12-30 Michael Meissner * config/rs6000/rs6000.c (rs6000_inner_target_options): Fix thinko in setting options via target #pragma or attribute. Index: gcc/config/rs6000/rs6000.c =================================================================== --- gcc/config/rs6000/rs6000.c (revision 182746) +++ gcc/config/rs6000/rs6000.c (working copy) @@ -27138,7 +27138,7 @@ rs6000_inner_target_options (tree args, if (strcmp (r, rs6000_opt_vars[i].name) == 0) { size_t j = rs6000_opt_vars[i].global_offset; - ((int *) &global_options)[j] = !invert; + *((int *) ((char *)&global_options + j)) = !invert; error_p = false; break; }