From patchwork Wed Oct 24 15:36:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Makarov X-Patchwork-Id: 193836 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 A778C2C00A6 for ; Thu, 25 Oct 2012 02:36:55 +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=1351697815; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=9NWkq1C y4PZb3hUrYDMI+ySmgG4=; b=ZHTUfg+/EKceR7lh12mMMHQYTRJzTlU/m36yAkb vUSFi7W0rRCa0ARlqYpElRGLJ5Cm3FpawoYnplQMc5zgFrEhfOsW3RYxYOYGe55F +n+n9DpgsVHsPecmH1h1X9p+DZhOUgYDmAX5JOPuwqfDYUX1eyjWj0NpmgbYQI9w WOxE= 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:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=kLUGfdymAKdaZnnZBruFd23OLrcXXyJi7KATDBRA67Blzmw3GWWWqq2ueNu/gI z5m92qiGUq/xvOg60OS7qAdXCxqPwMObx+kCEk/ptZ26qAvuYYJf/m8+AxkIDO8Z U74qVgtNUgSXFS1l0EmxnsBlj4pU/A75MmOBr86FqfQII=; Received: (qmail 15605 invoked by alias); 24 Oct 2012 15:36:47 -0000 Received: (qmail 15483 invoked by uid 22791); 24 Oct 2012 15:36:44 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, RP_MATCHES_RCVD, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 24 Oct 2012 15:36:36 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9OFaZR5004851 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 24 Oct 2012 11:36:35 -0400 Received: from Mair.local (vpn-11-145.rdu.redhat.com [10.11.11.145]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q9OFaYka021074 for ; Wed, 24 Oct 2012 11:36:35 -0400 Message-ID: <50880B02.4000900@redhat.com> Date: Wed, 24 Oct 2012 11:36:34 -0400 From: Vladimir Makarov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: GCC Patches Subject: patch to fix PR55048 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 The following patch fixes http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55048 LRA tried to take BB from non-NOTE_INSN_BASIC_BLOCK note and got NULL which resulted in SIGSEGV. The patch was successfully bootstrapped with java on x86/x86-64. Committed as rev. 192770. 2012-10-24 Vladimir Makarov PR bootstrap/55048 * lra-constraints.c (update_ebb_live_info): Skip non-NOTE_INSN_BASIC_BLOCK notes. Index: lra-constraints.c =================================================================== --- lra-constraints.c (revision 192743) +++ lra-constraints.c (working copy) @@ -4300,6 +4300,10 @@ update_ebb_live_info (rtx head, rtx tail curr_insn = prev_insn) { prev_insn = PREV_INSN (curr_insn); + /* We need to process empty blocks too. They contain + NOTE_INSN_BASIC_BLOCK referring for the basic block. */ + if (NOTE_P (curr_insn) && NOTE_KIND (curr_insn) != NOTE_INSN_BASIC_BLOCK) + continue; curr_bb = BLOCK_FOR_INSN (curr_insn); if (curr_bb != prev_bb) {