From patchwork Sat Apr 6 17:53:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 234449 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 4BD6F2C00A8 for ; Sun, 7 Apr 2013 03:54:29 +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 :message-id:from:to:content-type:subject:mime-version:date; q= dns; s=default; b=CW9C/81LRKoAMgy2ahzBevd/BvnssuLhQSfO7EkeMroNe7 tEPGFy98fCR9nOx0DSHjsJIvc4TLdMu0ZxHAMM25ckyA3y3/wWkcSiA9Qu1/G9wc /Iewj+kAHb57X1KvbGEStlTgyYoWCdzDNkWEGO49WjPb1r52OFhjUTNEZ3i3U= 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 :message-id:from:to:content-type:subject:mime-version:date; s= default; bh=jJyb0QWp0LTHNJcOJUwOYE+wU3E=; b=PaR7gEiBNzK1o5wL4MuP D3WCZiIaL64wEo5ByBq/OaBdR8hhNIooINEESuB24EPgRRufHYIIwSsAPkVlt5Hm 1zKKZS/ZMyWzGmt43FTwUUGHNvVfu6N9zSoqEcnp1DGzyrt+emx65+Dgr6qPAc/k MoUUw6/+9hhHfwt/fZGz5gU= Received: (qmail 23894 invoked by alias); 6 Apr 2013 17:54:22 -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 23884 invoked by uid 89); 6 Apr 2013 17:54:22 -0000 X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_NONE, RCVD_IN_HOSTKARMA_YE autolearn=ham version=3.3.1 Received: from blu0-omc3-s29.blu0.hotmail.com (HELO blu0-omc3-s29.blu0.hotmail.com) (65.55.116.104) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sat, 06 Apr 2013 17:54:19 +0000 Received: from BLU0-SMTP12 ([65.55.116.73]) by blu0-omc3-s29.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 6 Apr 2013 10:54:18 -0700 X-EIP: [X0nf5y7db2QakE7j0mqqq2T+RAJVrzq8] Message-ID: Received: from [192.168.2.10] ([69.158.168.249]) by BLU0-SMTP12.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Sat, 6 Apr 2013 10:54:16 -0700 From: John David Anglin To: gcc-patches@gcc.gnu.org Subject: [committed] Fix PR target/55487: Don't increment label nuses on NOTE_INSN_DELETED_LABEL notes MIME-Version: 1.0 (Apple Message framework v936) Date: Sat, 6 Apr 2013 13:53:37 -0400 X-Virus-Found: No The fix is obvious. Tested on hppa64-hp-hpux11.11 and hppa-unknown- linux-gnu with no observed regressions. Committed to 4.8 and trunk. Dave --- John David Anglin dave.anglin@bell.net 2013-04-06 John David Anglin PR target/55487 * config/pa/pa.c (legitimize_pic_address): Before incrementing label nuses, make sure we have a label. Index: config/pa/pa.c =================================================================== --- config/pa/pa.c (revision 197452) +++ config/pa/pa.c (working copy) @@ -792,7 +792,9 @@ /* Extract CODE_LABEL. */ orig = XEXP (orig, 0); add_reg_note (insn, REG_LABEL_OPERAND, orig); - LABEL_NUSES (orig)++; + /* Make sure we have label and not a note. */ + if (LABEL_P (orig)) + LABEL_NUSES (orig)++; } crtl->uses_pic_offset_table = 1; return reg;