diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-11-22 09:28:44 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2008-11-22 09:28:44 +0100 |
commit | b6500984e4ea88768b338f05ac0e25de5f326c90 (patch) | |
tree | b7a7c89adcda101aeaf38a6a2c0b31dbda854268 /gcc | |
parent | bbd46fd5f2d15d910e54c4f0e39ac23e774ba1c2 (diff) | |
download | gcc-b6500984e4ea88768b338f05ac0e25de5f326c90.zip gcc-b6500984e4ea88768b338f05ac0e25de5f326c90.tar.gz gcc-b6500984e4ea88768b338f05ac0e25de5f326c90.tar.bz2 |
re PR middle-end/37323 (__builtin_apply failures)
PR middle-end/37323
* builtins.c (expand_builtin_apply_args): Emit sequence before
parm_birth_insn instead of after entry_of_function's first insn.
From-SVN: r142116
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/builtins.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ca87591..5704694 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2008-11-22 Jakub Jelinek <jakub@redhat.com> + PR middle-end/37323 + * builtins.c (expand_builtin_apply_args): Emit sequence before + parm_birth_insn instead of after entry_of_function's first insn. + PR middle-end/37316 * function.c (assign_parm_remove_parallels): Pass data->passed_type as third argument to emit_group_store. diff --git a/gcc/builtins.c b/gcc/builtins.c index 0e5b834..a6ee5a9 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -1436,7 +1436,7 @@ expand_builtin_apply_args (void) chain current, so the code is placed at the start of the function. */ push_topmost_sequence (); - emit_insn_before (seq, NEXT_INSN (entry_of_function ())); + emit_insn_before (seq, parm_birth_insn); pop_topmost_sequence (); return temp; } |