From patchwork Sat May 28 00:41:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 627376 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 3rGkbT6sdrz9t44 for ; Sat, 28 May 2016 10:41:39 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=ATJH4mN0; dkim-atps=neutral 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=BzTBOeNMHf4l77xECS8t9KNUU7vJMuLpe+OaZON6TA5im7tOyiHIQ WhiZTu0CX/azh3YfJDS0gpF3AnMRnwnJJK5kknpD5ZI/xNS6tzWzwNc2PIFWdB2C iHa0LeE7kJRr/k9gkpUM5GSzVveCOZdPw59BfDyAOlJ6sXv8uqFCtw= 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=MF2V0exk5pS+pMOSYiTbi8mRgiE=; b=ATJH4mN0LqW6S6REExlF y8riQPyJB6/avzTqF4wl9qf1knyc+M16cvs5R9SE6gWJAGNxkzXogCvuH+K9eQUc PyDlpqyuJraaA1uqtFvc7mYgq3uE3o8WlRtphdXqSJpkVmZ/BkQmbzvKPWMcvK78 H2NrS+6fTPkzEJIRAEcYvOI= Received: (qmail 102361 invoked by alias); 28 May 2016 00:41:32 -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 102352 invoked by uid 89); 28 May 2016 00:41:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:580 X-HELO: mail-pf0-f169.google.com Received: from mail-pf0-f169.google.com (HELO mail-pf0-f169.google.com) (209.85.192.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sat, 28 May 2016 00:41:30 +0000 Received: by mail-pf0-f169.google.com with SMTP id g64so46511915pfb.2 for ; Fri, 27 May 2016 17:41:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=b+HfGPt7d53TkHHu67JqcxyHEMVCP8CtB3Nu/YK6Oi8=; b=lxS7ryddUf/HbLQYlND/pG7C7WmsMW/PojZy2LtUJ1CWbVKxI5EU6cfw6HSqONiEc9 9Vk2nGrzIq3kqG/qPDaZeIccBhqkA5k9QW3L9FmSbxfrx3wbPh/kiBAFHXIwd9J8SLli E/5GB7uTA7nOp6SVFSgvworDmkKFlIAESIfD43X/+KEakcBIBsidscb4ocygEINAjZuB +GTJW63LzckDnIiT9uAGFlKIe1r0FHNlUVKhpmTde5IqgrCSfOtzjleyRRJ+18pOMaCE iqg8lv3ujOzf0YVmlkElLYlxDT6gZrTeNb2tIBj1T1ZYeZ9AskPK4TVESTJqHexI19fI fEkA== X-Gm-Message-State: ALyK8tJ/Essx+s51OtavXCu5EvgAD9CHY41zG6w4L0d9c1jEcr6b8G2NWu6i4WaId4JYtA== X-Received: by 10.98.102.205 with SMTP id s74mr24124801pfj.54.1464396088516; Fri, 27 May 2016 17:41:28 -0700 (PDT) Received: from bubble.grove.modra.org (CPE-58-160-146-233.sa.bigpond.net.au. [58.160.146.233]) by smtp.gmail.com with ESMTPSA id x88sm15193815pfa.47.2016.05.27.17.41.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 May 2016 17:41:27 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id F0F55EA0199; Sat, 28 May 2016 10:11:49 +0930 (ACST) Date: Sat, 28 May 2016 10:11:49 +0930 From: Alan Modra To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix segfault on verify_dominators error path Message-ID: <20160528004149.GM3300@bubble.grove.modra.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes Committed as obvious. If the next check also fails, an attempt is made to print imm_bb->index. * dominance.c (verify_dominators): Don't segfault on NULL imm_bb. Index: gcc/dominance.c =================================================================== --- gcc/dominance.c (revision 236843) +++ gcc/dominance.c (working copy) @@ -1024,6 +1024,7 @@ { error ("dominator of %d status unknown", bb->index); err = true; + continue; } basic_block imm_bb_correct = di.get_idom (bb);