From patchwork Wed Feb 20 13:35:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Fix PR56398 From: Richard Guenther X-Patchwork-Id: 222084 Message-Id: To: gcc-patches@gcc.gnu.org Date: Wed, 20 Feb 2013 14:35:43 +0100 (CET) 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;