OSDN Git Service

PR middle-end/37356
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Sep 2008 22:06:20 +0000 (22:06 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Sep 2008 22:06:20 +0000 (22:06 +0000)
commitb236ac0e3665332059bec7d14aa28e23d207663d
tree08de3cd92e5e40dda70ea9b6eaa5ee262cbd1d31
parentfe53a672833c5ae417902a5be37f1269a5387faf
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140177 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/pr37356.C [new file with mode: 0644]
gcc/tree-inline.c