From 8226320b92d595423ab9b5dce04952886f5edffa Mon Sep 17 00:00:00 2001 From: Alexandre Petit-Bianco Date: Tue, 9 Nov 1999 20:30:57 +0000 Subject: parse.y (source_end_java_method): Resume permanent allocation, reversing Apr 27 1998 patch. Tue Nov 9 12:12:38 1999 Alexandre Petit-Bianco * parse.y (source_end_java_method): Resume permanent allocation, reversing Apr 27 1998 patch. (patch_string_cst): Pop obstacks after having pushed the permanent ones. From-SVN: r30462 --- gcc/java/parse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/java/parse.y') diff --git a/gcc/java/parse.y b/gcc/java/parse.y index ebdaa7b..492207e 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -5843,7 +5843,7 @@ source_end_java_method () } current_function_decl = NULL_TREE; - /* permanent_allocation (1); */ + permanent_allocation (1); java_parser_context_restore_global (); asynchronous_exceptions = flag_asynchronous_exceptions; } @@ -10237,6 +10237,7 @@ patch_string_cst (node) node = get_identifier (TREE_STRING_POINTER (node)); location = alloc_name_constant (CONSTANT_String, node); node = build_ref_from_constant_pool (location); + pop_obstacks (); } TREE_TYPE (node) = string_ptr_type_node; TREE_CONSTANT (node) = 1; -- cgit v1.1