re PR middle-end/41814 (ICE in jc1 during bootstrap of gcj)

2009-10-25  Richard Guenther  <rguenther@suse.de>

	PR middle-end/41814
	* tree.c (find_decls_types_r): Deal with Java overloading
	BINFO_VIRTUALS for its own purpose.

From-SVN: r153539
This commit is contained in:
Richard Guenther 2009-10-25 12:03:07 +00:00 committed by Richard Biener
parent 8af9d17f02
commit 22dfb60e84
2 changed files with 15 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2009-10-25 Richard Guenther <rguenther@suse.de>
PR middle-end/41814
* tree.c (find_decls_types_r): Deal with Java overloading
BINFO_VIRTUALS for its own purpose.
2009-10-24 Adam Nemet <anemet@caviumnetworks.com>
* config/mips/predicates.md (hilo_operand): New predicate.

View file

@ -4648,11 +4648,15 @@ find_decls_types_r (tree *tp, int *ws, void *data)
i, tem); ++i)
fld_worklist_push (TREE_TYPE (tem), fld);
tem = BINFO_VIRTUALS (TYPE_BINFO (t));
while (tem)
{
fld_worklist_push (TREE_VALUE (tem), fld);
tem = TREE_CHAIN (tem);
}
if (tem
/* The Java FE overloads BINFO_VIRTUALS for its own purpose. */
&& TREE_CODE (tem) == TREE_LIST)
do
{
fld_worklist_push (TREE_VALUE (tem), fld);
tem = TREE_CHAIN (tem);
}
while (tem);
}
if (RECORD_OR_UNION_TYPE_P (t))
{