From patchwork Fri Aug 29 15:53:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 384284 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 41E9A140087 for ; Sat, 30 Aug 2014 01:53:42 +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 :mime-version:date:message-id:subject:from:to:content-type; q= dns; s=default; b=MSGpQnBJQhs6un9QfOC/FR3nbhyhtr1u7H1LInfXPBJroK ZG80JdWW4v090KX7DyrBEeCKppaGq+Lx1w3H1ZJQi2xf3Hmth+iu121VcQxo8D+O n5dxfT5KcsaLUsLfkHHnqrLkpnj0VoljlqT1+gn7NVLrDVSabd+r6ziehtfWw= 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 :mime-version:date:message-id:subject:from:to:content-type; s= default; bh=aElplOTbHzQ+fpE/0UlRjp+1qDw=; b=Nx5I3x49FYytcxKx8ojr YOoHxLIqYugpq4k0JkH/dhUnjuA7e0TIfDwLPZy2prbT9xrV7UGMjAFFHiz4jxVW C+uFC1564si0nRASCQUmumaw8eUTuaSoRFe9xkT7nlNs197nxSWCxE7UAQCRGST7 b+h+Hi1TEKwMgZhg+C9fB6A= Received: (qmail 32031 invoked by alias); 29 Aug 2014 15:53:34 -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 32019 invoked by uid 89); 29 Aug 2014 15:53:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-we0-f179.google.com Received: from mail-we0-f179.google.com (HELO mail-we0-f179.google.com) (74.125.82.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 29 Aug 2014 15:53:32 +0000 Received: by mail-we0-f179.google.com with SMTP id t60so2378881wes.10 for ; Fri, 29 Aug 2014 08:53:29 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.180.74.42 with SMTP id q10mr4767578wiv.39.1409327609846; Fri, 29 Aug 2014 08:53:29 -0700 (PDT) Received: by 10.194.236.38 with HTTP; Fri, 29 Aug 2014 08:53:29 -0700 (PDT) Date: Fri, 29 Aug 2014 16:53:29 +0100 Message-ID: Subject: [committed] Fix PR 62301 From: Richard Sandiford To: gcc-patches This patch fixes a stupid typo in: 2014-08-28 Richard Sandiford * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters with const_rtx parameters. * varasm.c (get_pool_constant): Likewise. * rtlanal.c (rtx_referenced_p_1): Delete. (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx. Assert that the rtx we're looking for is nonnull. Allow searches for constant pool SYMBOL_REFs. which caused a boostrap failure on PowerPC. Bootstrapped on powerpc64-linux-gnu and installed as obvious. Thanks, Richard gcc/ PR bootstrap/62301 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call. Index: gcc/rtlanal.c =================================================================== --- gcc/rtlanal.c 2014-08-29 16:02:08.538707830 +0100 +++ gcc/rtlanal.c 2014-08-29 16:02:08.674706133 +0100 @@ -2849,7 +2849,7 @@ rtx_referenced_p (const_rtx x, const_rtx if (const_rtx y = *iter) { /* Check if a label_ref Y refers to label X. */ - if (GET_CODE (y) == LABEL_REF && LABEL_P (y) && XEXP (y, 0) == x) + if (GET_CODE (y) == LABEL_REF && LABEL_P (x) && XEXP (y, 0) == x) return true; if (rtx_equal_p (x, y))