function.c (fixup_var_refs): Also adjust the start of sequence after fixing up the...
authorEric Botcazou <ebotcazou@act-europe.fr>
Tue, 15 Jun 2004 06:16:48 +0000 (08:16 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 15 Jun 2004 06:16:48 +0000 (06:16 +0000)
* function.c (fixup_var_refs): Also adjust the start of sequence
after fixing up the insns.

Co-Authored-By: Olivier Hainque <hainque@act-europe.fr>
From-SVN: r83166

gcc/ChangeLog
gcc/function.c

index 64c2b4b3328cdad48c5f2113837ee521fbf9ad93..b8a94f1b347ee6a590f9c700c0c1113ebef24475 100644 (file)
@@ -1,3 +1,9 @@
+2004-06-15  Eric Botcazou  <ebotcazou@act-europe.fr>
+            Olivier Hainque  <hainque@act-europe.fr>
+
+       * function.c (fixup_var_refs): Also adjust the start of sequence
+       after fixing up the insns.
+
 2004-06-15  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
 
        * gccbug.in: Update optimization -> tree-optimization/rtl-optimization.
index b59da9a4160732a6ca6fd79c80dd9c5baee23203..5554cbbaf40269e13c55d44c4dae7dd39e88da79 100644 (file)
@@ -1621,8 +1621,8 @@ fixup_var_refs (rtx var, enum machine_mode promoted_mode, int unsignedp,
       push_to_full_sequence (stack->first, stack->last);
       fixup_var_refs_insns (stack->first, var, promoted_mode, unsignedp,
                            stack->next != 0, may_share);
-      /* Update remembered end of sequence
-        in case we added an insn at the end.  */
+      /* Update bounds of sequence in case we added insns.  */
+      stack->first = get_insns ();
       stack->last = get_last_insn ();
       end_sequence ();
     }