This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH,java] VECify TYPE_CATCH_CLASSES
- From: Andrew Haley <aph at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Sat, 26 Jun 2010 17:58:48 +0100
- Subject: Re: [PATCH,java] VECify TYPE_CATCH_CLASSES
- References: <20100626115546.GS22606@codesourcery.com>
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.