diff options
author | Tom Tromey <tromey@redhat.com> | 2002-03-26 18:59:04 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-03-26 18:59:04 +0000 |
commit | c8c21a8cd010469fa92d2da4a7029d5c40122a84 (patch) | |
tree | eab198f6806cee54744cc3682e0f013f9c4bc976 /gcc/java/parse.y | |
parent | 46ff5047273650dd7feac4612ffa4892163b9bae (diff) | |
download | gcc-c8c21a8cd010469fa92d2da4a7029d5c40122a84.zip gcc-c8c21a8cd010469fa92d2da4a7029d5c40122a84.tar.gz gcc-c8c21a8cd010469fa92d2da4a7029d5c40122a84.tar.bz2 |
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
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r-- | gcc/java/parse.y | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y index 8cb595e..e8ef2ef 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -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 (); } |