i386.c (classify_argument): Also check for QUAL_UNION_TYPE.

* config/i386/i386.c (classify_argument): Also check for
	QUAL_UNION_TYPE.

From-SVN: r51484
This commit is contained in:
Andreas Schwab 2002-03-27 22:53:08 +00:00 committed by Andreas Schwab
parent 18b467f142
commit e4dbaed54e
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-03-27 Andreas Schwab <schwab@suse.de>
* config/i386/i386.c (classify_argument): Also check for
QUAL_UNION_TYPE.
2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj

View File

@ -1726,7 +1726,8 @@ classify_argument (mode, type, classes, bit_offset)
classes[i] = subclasses[i % num];
}
/* Unions are similar to RECORD_TYPE but offset is always 0. */
else if (TREE_CODE (type) == UNION_TYPE)
else if (TREE_CODE (type) == UNION_TYPE
|| TREE_CODE (type) == QUAL_UNION_TYPE)
{
for (field = TYPE_FIELDS (type); field; field = TREE_CHAIN (field))
{