This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Missing check for QUAL_UNION_TYPE
- From: Andreas Schwab <schwab at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 27 Mar 2002 21:39:04 +0100
- Subject: Missing check for QUAL_UNION_TYPE
This came up when I tried building an Ada cross compiler for x86-64.
Andreas.
2002-03-27 Andreas Schwab <schwab@suse.de>
* config/i386/i386.c (classify_argument): Also check for
QUAL_UNION_TYPE.
Index: i386.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.368.2.4
diff -u -a -u -r1.368.2.4 i386.c
--- i386.c 2002/03/20 21:34:41 1.368.2.4
+++ i386.c 2002/03/27 20:35:06
@@ -1726,7 +1726,8 @@
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))
{
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."