aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/tree.c
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>1999-09-09 06:17:13 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-09-09 06:17:13 +0000
commite1b3e07d15a82f07afc3ebd6ecf4ee0334a90d65 (patch)
tree5953ca2b981b4fba376c0372f43a13e5ce7fa27d /gcc/cp/tree.c
parentfc009f966c98317401b51127f59de4ad37bb7d19 (diff)
downloadgcc-e1b3e07d15a82f07afc3ebd6ecf4ee0334a90d65.zip
gcc-e1b3e07d15a82f07afc3ebd6ecf4ee0334a90d65.tar.gz
gcc-e1b3e07d15a82f07afc3ebd6ecf4ee0334a90d65.tar.bz2
cp-tree.h (scratch_tree_cons): Remove.
* cp-tree.h (scratch_tree_cons): Remove. * call.c: Replace all uses of expr_tree_cons, saveable_tree_cons, and perm_tree_cons with plain tree_cons. * class.c: Likewise. * decl.c: Likewise. * decl2.c: Likewise. * except.c: Likewise. * expr.c: Likewise. * init.c: Likewise. * lex.c: Likewise. * method.c: Likewise. * parse.y: Likewise. * pt.c: Likewise. * repo.c: Likewise. * rtti.c: Likewise. * search.c: Likewise. * typeck.c: Likewise. * parse.c: Regenerated. * tree.c (build_srcloc): Simplify. From-SVN: r29225
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r--gcc/cp/tree.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index e71cf12..2cb6721 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -2522,19 +2522,10 @@ build_srcloc (file, line)
{
tree t;
- /* Make sure that we put these on the permanent obstack; up in
- add_pending_template, we pass this return value into perm_tree_cons,
- which also puts it on the permanent_obstack. However, this wasn't
- explicitly doing the same. */
- register struct obstack *ambient_obstack = current_obstack;
- current_obstack = &permanent_obstack;
-
t = make_node (SRCLOC);
SRCLOC_FILE (t) = file;
SRCLOC_LINE (t) = line;
- current_obstack = ambient_obstack;
-
return t;
}