aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-03-02 12:55:53 -0800
committerJim Wilson <wilson@gcc.gnu.org>1993-03-02 12:55:53 -0800
commitd508ebba63354cc0ebe3d566fbb7cd7bfb681e96 (patch)
treefd965dacf7e5adb7d48f10fcd91543f8806c67e0 /gcc
parent2260924f01538fc2517bb61ce2c44d47575e6654 (diff)
downloadgcc-d508ebba63354cc0ebe3d566fbb7cd7bfb681e96.zip
gcc-d508ebba63354cc0ebe3d566fbb7cd7bfb681e96.tar.gz
gcc-d508ebba63354cc0ebe3d566fbb7cd7bfb681e96.tar.bz2
(gen_sequence): Add push_obstacks_nochange and
pop_obstacks calls around rtl_in_saveable_obstack call. From-SVN: r3601
Diffstat (limited to 'gcc')
-rw-r--r--gcc/emit-rtl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 960c884..356a6ff 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -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++)