From: Alexandre Petit-Bianco Date: Tue, 9 Nov 1999 20:30:57 +0000 (+0000) Subject: parse.y (source_end_java_method): Resume permanent allocation, reversing Apr 27 1998... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8226320b92d595423ab9b5dce04952886f5edffa;p=gcc.git 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 --- diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index b516afd9407..d15c7bd9e08 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,10 @@ +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. + 1999-11-05 Tom Tromey * class.c (finish_class): Emit inlined methods if any native diff --git a/gcc/java/parse.c b/gcc/java/parse.c index 2fa2660180e..6aad8130d48 100644 --- a/gcc/java/parse.c +++ b/gcc/java/parse.c @@ -8448,7 +8448,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; } @@ -12842,6 +12842,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; diff --git a/gcc/java/parse.y b/gcc/java/parse.y index ebdaa7bc47d..492207ec8df 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;