------- 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