diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2010-06-28 12:06:52 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@gcc.gnu.org> | 2010-06-28 12:06:52 +0000 |
commit | 9062f848ce87430efb0218a97068cbf3f2d9f214 (patch) | |
tree | aebfd63be8cd72586541ea999045763a67598c27 /gcc/java/except.c | |
parent | 04924d6a8881c2f4d4461e0e7a169846f2a34a05 (diff) | |
download | gcc-9062f848ce87430efb0218a97068cbf3f2d9f214.zip gcc-9062f848ce87430efb0218a97068cbf3f2d9f214.tar.gz gcc-9062f848ce87430efb0218a97068cbf3f2d9f214.tar.bz2 |
java-tree.h (struct lang_type): Change type to a VEC.
* 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.
From-SVN: r161487
Diffstat (limited to 'gcc/java/except.c')
-rw-r--r-- | gcc/java/except.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/java/except.c b/gcc/java/except.c index 2c3aead..0033da3 100644 --- a/gcc/java/except.c +++ b/gcc/java/except.c @@ -419,9 +419,9 @@ prepare_eh_table_type (tree type) layout_decl (decl, 0); pushdecl (decl); exp = build1 (ADDR_EXPR, build_pointer_type (utf8const_ptr_type), decl); - TYPE_CATCH_CLASSES (output_class) = - tree_cons (NULL, make_catch_class_record (exp, utf8_ref), - TYPE_CATCH_CLASSES (output_class)); + CONSTRUCTOR_APPEND_ELT (TYPE_CATCH_CLASSES (output_class), + NULL_TREE, + make_catch_class_record (exp, utf8_ref)); } exp = convert (ptr_type_node, exp); |