aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2003-09-04 19:48:22 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2003-09-04 19:48:22 +0000
commit1a9861e6292552cfef9fb0a9b59ce8ce9e596a15 (patch)
tree69d634a7730e9df14e91a4d51a6c844a166814eb /gcc/cp/decl2.c
parent33d05111e79f43a85e169f38ac31bb2a5d8a1715 (diff)
downloadgcc-1a9861e6292552cfef9fb0a9b59ce8ce9e596a15.zip
gcc-1a9861e6292552cfef9fb0a9b59ce8ce9e596a15.tar.gz
gcc-1a9861e6292552cfef9fb0a9b59ce8ce9e596a15.tar.bz2
re PR c++/12161 (ICE during bootstrap, locale-inst.c, cp/call.c: 4571)
PR 12161 * decl2.c (mark_used): Use ggc_push_context/ggc_pop_context. * tree.c (cp_cannot_inline_tree_fn): Likewise. From-SVN: r71084
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r--gcc/cp/decl2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index d74f290..7ca20c8 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -4226,7 +4226,10 @@ mark_used (tree decl)
information. */
|| cp_function_chain->can_throw);
+ /* Our caller is likely to have lots of data on the stack. */
+ ggc_push_context ();
instantiate_decl (decl, defer);
+ ggc_pop_context ();
}
}