diff options
author | Rafael Avila de Espindola <espindola@google.com> | 2008-10-22 14:18:13 +0000 |
---|---|---|
committer | Rafael Espindola <espindola@gcc.gnu.org> | 2008-10-22 14:18:13 +0000 |
commit | a291ed6dbc4563499e0d4063dc2820202ee1fb3f (patch) | |
tree | e643ac92d5c1eab282be4bede984c8e23c522e2a | |
parent | b36c386c88ade83a6927df28ca5d26d3af5bde23 (diff) | |
download | gcc-a291ed6dbc4563499e0d4063dc2820202ee1fb3f.zip gcc-a291ed6dbc4563499e0d4063dc2820202ee1fb3f.tar.gz gcc-a291ed6dbc4563499e0d4063dc2820202ee1fb3f.tar.bz2 |
ipa-struct-reorg.c (create_new_alloc_sites): Properly insert the newly created statements.
2008-10-22 Rafael Espindola <espindola@google.com>
* ipa-struct-reorg.c (create_new_alloc_sites): Properly insert the
newly created statements.
From-SVN: r141293
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa-struct-reorg.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f95f4e4..8041827 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-10-22 Rafael Espindola <espindola@google.com> + + * ipa-struct-reorg.c (create_new_alloc_sites): Properly insert the + newly created statements. + 2008-10-22 Kaz Kojima <kkojima@gcc.gnu.org> PR target/37633 diff --git a/gcc/ipa-struct-reorg.c b/gcc/ipa-struct-reorg.c index d6bca8a..d1d7b1c 100644 --- a/gcc/ipa-struct-reorg.c +++ b/gcc/ipa-struct-reorg.c @@ -2114,8 +2114,9 @@ create_new_alloc_sites (fallocs_t m_data, tree context) num = gen_num_of_structs_in_malloc (stmt, str->decl, &new_stmts); if (new_stmts) { - last_stmt = gimple_seq_last_stmt (new_stmts); + gimple last_stmt_tmp = gimple_seq_last_stmt (new_stmts); insert_seq_after_stmt (last_stmt, new_stmts); + last_stmt = last_stmt_tmp; } /* Generate an allocation sites for each new structure type. */ |