[PATCH,java] VECify TYPE_CATCH_CLASSES
Andrew Haley
aph@redhat.com
Sat Jun 26 16:58:00 GMT 2010
On 06/26/2010 12:55 PM, Nathan Froyd wrote:
> The patch below turns TYPE_CATCH_CLASSES into a VEC. I briefly looked
> at the necessary changes to ensure that make_catch_class_record could be
> callable in make_class, but that looked fairly daunting, so I opted for
> the simpler solution.
>
> Tested on x86_64-unknown-linux-gnu (libjava testsuite). OK to commit?
>
> -Nathan
>
> * java-tree.h (struct lang_type) [catch_classes]: Change type to a
> VEC.
> * except.c (prepare_eh_table_type): Call CONSTRUCTOR_APPEND_ELT
> instead of tree_cons.
> * class.c (make_class): Add dummy entry to TYPE_CATCH_CLASSES.
> (emit_catch_table): Adjust for new type of TYPE_CATCH_CLASSES.
Sure, thanks.
Andrew.
More information about the Java-patches
mailing list