aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-03-02 12:54:45 -0800
committerJim Wilson <wilson@gcc.gnu.org>1993-03-02 12:54:45 -0800
commit02e39be12010054b7fb81aceb731590bf7f44843 (patch)
tree7ae675d6b930cfcde993478555963d2efc02b444 /gcc
parent4b3f0a5b28cd7a835bfed0999fae7dde3723a8ab (diff)
downloadgcc-02e39be12010054b7fb81aceb731590bf7f44843.zip
gcc-02e39be12010054b7fb81aceb731590bf7f44843.tar.gz
gcc-02e39be12010054b7fb81aceb731590bf7f44843.tar.bz2
(rtl_in_saveable_obstack): Always switch to saveable_obstack.
Return type now void instead of int. From-SVN: r3599
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index cc2219b..45b917d 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -524,19 +524,13 @@ rtl_in_current_obstack ()
rtl_obstack = current_obstack;
}
-/* Temporarily allocate rtl from saveable_obstack. Return 1 if we were
- previously allocating it from current_obstack. */
+/* Start allocating rtl from saveable_obstack. Intended to be used after
+ a call to push_obstacks_nochange. */
-int
+void
rtl_in_saveable_obstack ()
{
- if (rtl_obstack == current_obstack)
- {
- rtl_obstack = saveable_obstack;
- return 1;
- }
- else
- return 0;
+ rtl_obstack = saveable_obstack;
}
/* Allocate SIZE bytes in the current obstack