]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/37323 (__builtin_apply failures)
authorJakub Jelinek <jakub@redhat.com>
Sat, 22 Nov 2008 08:28:44 +0000 (09:28 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 22 Nov 2008 08:28:44 +0000 (09:28 +0100)
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

gcc/ChangeLog
gcc/builtins.c

index ca875912dec55a4d884702c67d3b36e711cc4d7f..5704694df95e0508e395dd14b6ddb006182ce65f 100644 (file)
@@ -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.
index 0e5b834fde4531557ebc84e82f5c3359b4d49f54..a6ee5a96729bfd4384c147e1e7b5f71e10b83753 100644 (file)
@@ -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;
   }