* class.c (make_class): Create empty binfo here.
(set_super_info): Only create binfo if we have superclasses.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105399
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-10-12 Nathan Sidwell <nathan@codesourcery.com>
+ Wil Mahan <wmahan@gmail.com>
+
+ PR java/23620
+ * class.c (make_class): Create empty binfo here.
+ (set_super_info): Only create binfo if we have superclasses.
+
2005-10-03 Ranjit Mathew <rmathew@gcc.gnu.org>
PR java/24127
{
tree type;
type = make_node (RECORD_TYPE);
+ /* Unfortunately we must create the binfo here, so that class
+ loading works. */
+ TYPE_BINFO (type) = make_tree_binfo (0);
MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC (type);
return type;
if (super_class)
total_supers++;
- TYPE_BINFO (this_class) = make_tree_binfo (total_supers);
+ if (total_supers)
+ TYPE_BINFO (this_class) = make_tree_binfo (total_supers);
TYPE_VFIELD (this_class) = TYPE_VFIELD (object_type_node);
if (super_class)
{