[Bug middle-end/37356] [4.4 Regression] ICE in gsi_insert_seq_nodes_after, at gimple-iterator.c:222
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Sep 9 22:09:00 GMT 2008
------- Comment #11 from jakub at gcc dot gnu dot org 2008-09-09 22:07 -------
Subject: Bug 37356
Author: jakub
Date: Tue Sep 9 22:06:20 2008
New Revision: 140177
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140177
Log:
PR middle-end/37356
* tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
calling gimple_regimplify_operands on it. Iterate over all newly
added statements, not just the last one.
(insert_init_stmt): Insert stmt into seq first, then call
gimple_regimplify_operands on it. Don't create new gimplification
context, nor find referenced vars.
* g++.dg/tree-ssa/pr37356.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/tree-ssa/pr37356.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-inline.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37356
More information about the Gcc-bugs
mailing list