re PR objc++/42156 (Hundreds of objc++ testsuite regressions)

PR obj-c++/42156
	* objc-act.c (objc_build_struct): INIT_TYPE_OBJC_INFO for
	type variants that don't have it initialized yet.

From-SVN: r154721
This commit is contained in:
Jakub Jelinek 2009-11-28 13:12:32 +01:00 committed by Jakub Jelinek
parent 11895e28ee
commit 76dcaf33d5
2 changed files with 16 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2009-11-28 Jakub Jelinek <jakub@redhat.com>
PR obj-c++/42156
* objc-act.c (objc_build_struct): INIT_TYPE_OBJC_INFO for
type variants that don't have it initialized yet.
2009-09-14 Jan Hubicka <jh@suse.cz>
* objc-act.c (objc_add_static_instance): Do not set DECL_COMMON.

View File

@ -871,9 +871,16 @@ objc_build_struct (tree klass, tree fields, tree super_name)
finish_struct(), and then reinstate it afterwards. */
for (t = TYPE_NEXT_VARIANT (s); t; t = TYPE_NEXT_VARIANT (t))
objc_info
= chainon (objc_info,
build_tree_list (NULL_TREE, TYPE_OBJC_INFO (t)));
{
if (!TYPE_HAS_OBJC_INFO (t))
{
INIT_TYPE_OBJC_INFO (t);
TYPE_OBJC_INTERFACE (t) = klass;
}
objc_info
= chainon (objc_info,
build_tree_list (NULL_TREE, TYPE_OBJC_INFO (t)));
}
/* Point the struct at its related Objective-C class. */
INIT_TYPE_OBJC_INFO (s);