aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/objc/ChangeLog8
-rw-r--r--gcc/objc/objc-act.c13
2 files changed, 8 insertions, 13 deletions
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog
index 700cb04..0b2be04 100644
--- a/gcc/objc/ChangeLog
+++ b/gcc/objc/ChangeLog
@@ -1,3 +1,11 @@
+2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR objc/16546
+ * objc-act.c (generate_method_descriptors): Remove setting
+ the new decls' type to variable_length_type.
+ (generate_ivar_lists): Likewise.
+ (generate_dispatch_tables): Likewise.
+
2004-10-30 Ziemowit Laski <zlaski@apple.com>
* objc-act.c (objc_lookup_ivar): The new OTHER parameter
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index 3474ded..4e95ce6 100644
--- a/gcc/objc/objc-act.c
+++ b/gcc/objc/objc-act.c
@@ -3773,9 +3773,6 @@ static void
generate_method_descriptors (tree protocol)
{
tree initlist, chain, method_list_template;
- tree variable_length_type
- = xref_tag (RECORD_TYPE,
- get_identifier (UTAG_METHOD_PROTOTYPE_LIST));
int size;
if (!objc_method_prototype_template)
@@ -3798,7 +3795,6 @@ generate_method_descriptors (tree protocol)
= generate_descriptor_table (method_list_template,
"_OBJC_PROTOCOL_CLASS_METHODS",
size, initlist, protocol);
- TREE_TYPE (UOBJC_CLASS_METHODS_decl) = variable_length_type;
}
else
UOBJC_CLASS_METHODS_decl = 0;
@@ -3819,7 +3815,6 @@ generate_method_descriptors (tree protocol)
= generate_descriptor_table (method_list_template,
"_OBJC_PROTOCOL_INSTANCE_METHODS",
size, initlist, protocol);
- TREE_TYPE (UOBJC_INSTANCE_METHODS_decl) = variable_length_type;
}
else
UOBJC_INSTANCE_METHODS_decl = 0;
@@ -4503,8 +4498,6 @@ static void
generate_ivar_lists (void)
{
tree initlist, ivar_list_template, chain;
- tree variable_length_type
- = xref_tag (RECORD_TYPE, get_identifier (UTAG_IVAR_LIST));
int size;
generating_instance_variables = 1;
@@ -4526,7 +4519,6 @@ generate_ivar_lists (void)
UOBJC_CLASS_VARIABLES_decl
= generate_ivars_list (ivar_list_template, "_OBJC_CLASS_VARIABLES",
size, initlist);
- TREE_TYPE (UOBJC_CLASS_VARIABLES_decl) = variable_length_type;
}
else
UOBJC_CLASS_VARIABLES_decl = 0;
@@ -4541,7 +4533,6 @@ generate_ivar_lists (void)
UOBJC_INSTANCE_VARIABLES_decl
= generate_ivars_list (ivar_list_template, "_OBJC_INSTANCE_VARIABLES",
size, initlist);
- TREE_TYPE (UOBJC_INSTANCE_VARIABLES_decl) = variable_length_type;
}
else
UOBJC_INSTANCE_VARIABLES_decl = 0;
@@ -4673,8 +4664,6 @@ static void
generate_dispatch_tables (void)
{
tree initlist, chain, method_list_template;
- tree variable_length_type
- = xref_tag (RECORD_TYPE, get_identifier (UTAG_METHOD_LIST));
int size;
if (!objc_method_template)
@@ -4697,7 +4686,6 @@ generate_dispatch_tables (void)
? "_OBJC_CLASS_METHODS"
: "_OBJC_CATEGORY_CLASS_METHODS"),
size, initlist);
- TREE_TYPE (UOBJC_CLASS_METHODS_decl) = variable_length_type;
}
else
UOBJC_CLASS_METHODS_decl = 0;
@@ -4723,7 +4711,6 @@ generate_dispatch_tables (void)
= generate_dispatch_table (method_list_template,
"_OBJC_CATEGORY_INSTANCE_METHODS",
size, initlist);
- TREE_TYPE (UOBJC_INSTANCE_METHODS_decl) = variable_length_type;
}
else
UOBJC_INSTANCE_METHODS_decl = 0;