This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH,java] VECify TYPE_CATCH_CLASSES


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]