From patchwork Wed Feb 20 13:35:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 222084 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 50C2A2C007A for ; Thu, 21 Feb 2013 00:36:18 +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=1361972179; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Date: From:To:Subject:Message-ID:User-Agent:MIME-Version:Content-Type: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=4ab9uZ8AnbyhVIEccii7 XqbZWWw=; b=Yei54lXEWcOj5P9rDxksVxoHynvv0RIxXarJpe6IhB7/R5zfPAOs Crm4FRxITYZgkBs9vXGp4QPGo/zui7k4qhz1wDQXZCa1TkZYJov5w1RgyOXNnXkh qsntdtD7WdkkU6JHDmqlaVxSb44I0JYXtRGQ4qH3QjwkmqEvlp37N4M= 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:Date:From:To:Subject:Message-ID:User-Agent:MIME-Version:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=eT3OZG9WrZCAu9w/4PbykZT+gIkCTiqB831QnL0A4qVsOERBWtmodjB2dHQ46v GHSjtobKrsC5rnyfVBDE/lBb2kWY3VLEJiUhKWx8Gqqluk4pwCbEPeBzZKPjbvoA sAUPhhc1FEBTuYvyPIyqJS7U0IBebhQn/U67Dg0IGUISg=; Received: (qmail 30312 invoked by alias); 20 Feb 2013 13:36:05 -0000 Received: (qmail 30162 invoked by uid 22791); 20 Feb 2013 13:36:03 -0000 X-SWARE-Spam-Status: No, hits=-5.7 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, TW_TM X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Feb 2013 13:35:45 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id D88A5A51F2 for ; Wed, 20 Feb 2013 14:35:43 +0100 (CET) Date: Wed, 20 Feb 2013 14:35:43 +0100 (CET) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix PR56398 Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 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 This fixes an ICE because gimple_bb of a default def stmt is NULL. Just don't do anything here, we're not going to adjust anything anyway for them. Bootstrapped and tested on x86_64-unknown-linux-gnu, applied. Richard. 2013-02-20 Richard Biener PR tree-optimization/56398 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs. Index: gcc/tree-vect-loop-manip.c =================================================================== --- gcc/tree-vect-loop-manip.c (revision 196169) +++ gcc/tree-vect-loop-manip.c (working copy) @@ -187,6 +187,7 @@ adjust_debug_stmts (tree from, tree to, if (MAY_HAVE_DEBUG_STMTS && TREE_CODE (from) == SSA_NAME + && ! SSA_NAME_IS_DEFAULT_DEF (from) && ! virtual_operand_p (from)) { ai.from = from;