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:
parent
11895e28ee
commit
76dcaf33d5
@ -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>
|
2009-09-14 Jan Hubicka <jh@suse.cz>
|
||||||
|
|
||||||
* objc-act.c (objc_add_static_instance): Do not set DECL_COMMON.
|
* objc-act.c (objc_add_static_instance): Do not set DECL_COMMON.
|
||||||
|
@ -871,9 +871,16 @@ objc_build_struct (tree klass, tree fields, tree super_name)
|
|||||||
finish_struct(), and then reinstate it afterwards. */
|
finish_struct(), and then reinstate it afterwards. */
|
||||||
|
|
||||||
for (t = TYPE_NEXT_VARIANT (s); t; t = TYPE_NEXT_VARIANT (t))
|
for (t = TYPE_NEXT_VARIANT (s); t; t = TYPE_NEXT_VARIANT (t))
|
||||||
|
{
|
||||||
|
if (!TYPE_HAS_OBJC_INFO (t))
|
||||||
|
{
|
||||||
|
INIT_TYPE_OBJC_INFO (t);
|
||||||
|
TYPE_OBJC_INTERFACE (t) = klass;
|
||||||
|
}
|
||||||
objc_info
|
objc_info
|
||||||
= chainon (objc_info,
|
= chainon (objc_info,
|
||||||
build_tree_list (NULL_TREE, TYPE_OBJC_INFO (t)));
|
build_tree_list (NULL_TREE, TYPE_OBJC_INFO (t)));
|
||||||
|
}
|
||||||
|
|
||||||
/* Point the struct at its related Objective-C class. */
|
/* Point the struct at its related Objective-C class. */
|
||||||
INIT_TYPE_OBJC_INFO (s);
|
INIT_TYPE_OBJC_INFO (s);
|
||||||
|
Loading…
Reference in New Issue
Block a user