(gen_sequence): Add push_obstacks_nochange and
authorJim Wilson <wilson@gcc.gnu.org>
Tue, 2 Mar 1993 20:55:53 +0000 (12:55 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 2 Mar 1993 20:55:53 +0000 (12:55 -0800)
pop_obstacks calls around rtl_in_saveable_obstack call.

From-SVN: r3601

gcc/emit-rtl.c

index 960c8849c7953fa4323bbd5d78cf6c1cb0542152..356a6ff9bcf987c46d1da0e7e14ebf36eca201b4 100644 (file)
@@ -2677,10 +2677,10 @@ gen_sequence ()
     {
       /* Ensure that this rtl goes in saveable_obstack, since we may be
         caching it.  */
-      int in_current_obstack = rtl_in_saveable_obstack ();
+      push_obstacks_nochange ();
+      rtl_in_saveable_obstack ();
       result = gen_rtx (SEQUENCE, VOIDmode, rtvec_alloc (len));
-      if (in_current_obstack)
-       rtl_in_current_obstack ();
+      pop_obstacks ();
     }
 
   for (i = 0, tem = first_insn; tem; tem = NEXT_INSN (tem), i++)