aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf-parse.c
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2012-04-11 10:47:43 +0000
committerAndrew Haley <aph@gcc.gnu.org>2012-04-11 10:47:43 +0000
commitcca4dd5983e33e31bfb559b7544428db628fd554 (patch)
tree22431b761201f7586d181a8501e813148ae881b4 /gcc/java/jcf-parse.c
parentada371011e40f98f5d03767f34bb11e3dbf53bab (diff)
downloadgcc-cca4dd5983e33e31bfb559b7544428db628fd554.zip
gcc-cca4dd5983e33e31bfb559b7544428db628fd554.tar.gz
gcc-cca4dd5983e33e31bfb559b7544428db628fd554.tar.bz2
jcf.h (bootstrap_method): New.
2012-04-11 Andrew Haley <aph@redhat.com> * jcf.h (bootstrap_method): New. (BootstrapMethods): New. (JCF): Add BootstrapMethods. (enum cpool_tag): Add MethodHandle, MethodType, and InvokeDynamic. * jcf-reader.c (jcf_parse_bootstrap_methods): New. (jcf_parse_constant_pool): Handlers for MethodHandle, MethodType, and InvokeDynamic. (jcf_parse_bootstrap_methods): New. * javaop.def (invokedynamic): New opcode. * jcf-parse.c (get_constant): An unknown constant type should not be an internal error, but a fatal one. Make it so. * jcf-dump.c (HANDLE_BOOTSTRAP_METHODS_ATTRIBUTE): New. (HANDLE_END_BOOTSTRAP_METHODS): New. (print_constant): Handlers for MethodHandle, MethodType, and InvokeDynamic. From-SVN: r186307
Diffstat (limited to 'gcc/java/jcf-parse.c')
-rw-r--r--gcc/java/jcf-parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index 04c04f5..c799676 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -1113,8 +1113,8 @@ get_constant (JCF *jcf, int index)
jcf->cpool.data[index].t = value;
return value;
bad:
- internal_error ("bad value constant type %d, index %d",
- JPOOL_TAG (jcf, index), index);
+ fatal_error ("bad value constant type %d, index %d",
+ JPOOL_TAG (jcf, index), index);
}
tree