Commit 8226320b by Alexandre Petit-Bianco Committed by Alexandre Petit-Bianco

parse.y (source_end_java_method): Resume permanent allocation, reversing Apr 27 1998 patch.

Tue Nov  9 12:12:38 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* 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
parent dc8842bf
Tue Nov 9 12:12:38 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
* 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 <tromey@cygnus.com> 1999-11-05 Tom Tromey <tromey@cygnus.com>
* class.c (finish_class): Emit inlined methods if any native * class.c (finish_class): Emit inlined methods if any native
......
...@@ -8448,7 +8448,7 @@ source_end_java_method () ...@@ -8448,7 +8448,7 @@ source_end_java_method ()
} }
current_function_decl = NULL_TREE; current_function_decl = NULL_TREE;
/* permanent_allocation (1); */ permanent_allocation (1);
java_parser_context_restore_global (); java_parser_context_restore_global ();
asynchronous_exceptions = flag_asynchronous_exceptions; asynchronous_exceptions = flag_asynchronous_exceptions;
} }
...@@ -12842,6 +12842,7 @@ patch_string_cst (node) ...@@ -12842,6 +12842,7 @@ patch_string_cst (node)
node = get_identifier (TREE_STRING_POINTER (node)); node = get_identifier (TREE_STRING_POINTER (node));
location = alloc_name_constant (CONSTANT_String, node); location = alloc_name_constant (CONSTANT_String, node);
node = build_ref_from_constant_pool (location); node = build_ref_from_constant_pool (location);
pop_obstacks ();
} }
TREE_TYPE (node) = string_ptr_type_node; TREE_TYPE (node) = string_ptr_type_node;
TREE_CONSTANT (node) = 1; TREE_CONSTANT (node) = 1;
......
...@@ -5843,7 +5843,7 @@ source_end_java_method () ...@@ -5843,7 +5843,7 @@ source_end_java_method ()
} }
current_function_decl = NULL_TREE; current_function_decl = NULL_TREE;
/* permanent_allocation (1); */ permanent_allocation (1);
java_parser_context_restore_global (); java_parser_context_restore_global ();
asynchronous_exceptions = flag_asynchronous_exceptions; asynchronous_exceptions = flag_asynchronous_exceptions;
} }
...@@ -10237,6 +10237,7 @@ patch_string_cst (node) ...@@ -10237,6 +10237,7 @@ patch_string_cst (node)
node = get_identifier (TREE_STRING_POINTER (node)); node = get_identifier (TREE_STRING_POINTER (node));
location = alloc_name_constant (CONSTANT_String, node); location = alloc_name_constant (CONSTANT_String, node);
node = build_ref_from_constant_pool (location); node = build_ref_from_constant_pool (location);
pop_obstacks ();
} }
TREE_TYPE (node) = string_ptr_type_node; TREE_TYPE (node) = string_ptr_type_node;
TREE_CONSTANT (node) = 1; TREE_CONSTANT (node) = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment