From patchwork Thu Aug 21 18:16:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Meissner X-Patchwork-Id: 382023 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 884AF14009C for ; Fri, 22 Aug 2014 04:16:48 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=k0vVgxZnP2ZqdW+KGogOEXI500BaXIgdGjWSISd4oU/Dfp9O+Syxa Au2rBk+nFH83qJhfIPg0di97KKs3c4vKLpQHTlR24siDOPPfHlTKY8JuXB5uR4Kw iBFbUYbMuhoL3Pv177SLC24vv06zE+hSLahzKl/RI4sEeKcRX3uzfs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=1yNFagUpki6eNb5BuP5wuOYMtjA=; b=yRckbsavzUvyOyU4L9r0 N9rRuTG4VvOlx0Q1U/SEzNbnyBGQReXcTeHrc6oFyzK6WL3GAd9KTrLW48PdjEG7 Khh6G/v2TaK0uCnLtrJZRNszQwIsvCzOly7xL4vxi2iNIyBnSsdk0DDd/LoUVJRu dQofmLN7jXCYK4vheoSA7xI= Received: (qmail 27348 invoked by alias); 21 Aug 2014 18:16:42 -0000 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 Received: (qmail 27327 invoked by uid 89); 21 Aug 2014 18:16:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: e34.co.us.ibm.com Received: from e34.co.us.ibm.com (HELO e34.co.us.ibm.com) (32.97.110.152) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 21 Aug 2014 18:16:40 +0000 Received: from /spool/local by e34.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 21 Aug 2014 12:16:38 -0600 Received: from d03dlp01.boulder.ibm.com (9.17.202.177) by e34.co.us.ibm.com (192.168.1.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 21 Aug 2014 12:16:37 -0600 Received: from b03cxnp08028.gho.boulder.ibm.com (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id 400F51FF0040 for ; Thu, 21 Aug 2014 12:16:36 -0600 (MDT) Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id s7LIGbej19071026 for ; Thu, 21 Aug 2014 20:16:37 +0200 Received: from d03av03.boulder.ibm.com (localhost [127.0.0.1]) by d03av03.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s7LIGaGd018152 for ; Thu, 21 Aug 2014 12:16:36 -0600 Received: from ibm-tiger.the-meissners.org (dhcp-9-32-77-206.usma.ibm.com [9.32.77.206]) by d03av03.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s7LIGZem018083; Thu, 21 Aug 2014 12:16:35 -0600 Received: by ibm-tiger.the-meissners.org (Postfix, from userid 500) id C1D10424F4; Thu, 21 Aug 2014 14:16:34 -0400 (EDT) Date: Thu, 21 Aug 2014 14:16:34 -0400 From: Michael Meissner To: gcc-patches@gcc.gnu.org, dje.gcc@gmail.com Subject: [PATCH], Fix error in powerpc bootstrap Message-ID: <20140821181634.GA5942@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-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14082118-1542-0000-0000-0000043138CD X-IsSubscribed: yes There was some code in the rs6000.c that new warnings prevented the powerpc compiler from bootstraping. I fixed it under the 'obvious' rule, after doing a bootstrap with the change: 2014-08-21 Michael Meissner * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that generated a warning and prevented bootstrapping the compiler. Index: gcc/config/rs6000/rs6000.c =================================================================== --- gcc/config/rs6000/rs6000.c (revision 214277) +++ gcc/config/rs6000/rs6000.c (working copy) @@ -18601,7 +18601,7 @@ print_operand (FILE *file, rtx x, int co fprintf (file, "0,%s", reg_names[REGNO (tmp)]); else { - if (!GET_CODE (tmp) == PLUS + if (GET_CODE (tmp) != PLUS || !REG_P (XEXP (tmp, 0)) || !REG_P (XEXP (tmp, 1))) {