Commit c8c21a8c by Tom Tromey Committed by Tom Tromey

re PR java/5942 (tree check failure when compiling Classpath with strictfp StrictMath class)

	Fix for PR java/5942:
	* parse.y (init_src_parse): Added sanity check.
	* parse.h (struct parser_ctxt) [modifier_ctx]: Array has 12
	elements, not 11.

From-SVN: r51398
parent 46ff5047
2002-03-26 Tom Tromey <tromey@redhat.com>
Fix for PR java/5942:
* parse.y (init_src_parse): Added sanity check.
* parse.h (struct parser_ctxt) [modifier_ctx]: Array has 12
elements, not 11.
2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
* decl.c (lang_mark_tree): Rename java_mark_tree.
......
......@@ -762,7 +762,7 @@ struct parser_ctxt {
/* This section is defined only if we compile jc1 */
#ifndef JC1_LITE
tree modifier_ctx [11]; /* WFL of modifiers */
tree modifier_ctx [12]; /* WFL of modifiers */
tree class_type; /* Current class */
tree function_decl; /* Current function decl, save/restore */
......
......@@ -16013,6 +16013,10 @@ init_src_parse ()
{
/* Register roots with the garbage collector. */
ggc_add_tree_root (src_parse_roots, ARRAY_SIZE (src_parse_roots));
/* Sanity check; we've been bit by this before. */
if (ARRAY_SIZE (ctxp->modifier_ctx) != MODIFIER_TK - PUBLIC_TK)
abort ();
}
......
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