summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Matz <matz@gcc.gnu.org>2004-02-25 00:45:43 +0000
committerMichael Matz <matz@gcc.gnu.org>2004-02-25 00:45:43 +0000
commit265d94acde9c183595b9c045fd9abe962d814f86 (patch)
tree31ea9bc4283974fcd754058a5d5d0622af92f1ee /gcc
parenta00ad86b8c960e0b986d98dd35c2b3a7cc026f94 (diff)
downloadgcc-265d94acde9c183595b9c045fd9abe962d814f86.tar.gz
i386.c (ix86_comp_type_attributes): Check for regparm attributes.
* config/i386/i386.c (ix86_comp_type_attributes): Check for regparm attributes. From-SVN: r78410
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/i386/i386.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index b7a0a7156cd..401f4b58a51 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -1686,6 +1686,9 @@ ix86_comp_type_attributes (tree type1, tree type2)
if (!lookup_attribute (rtdstr, TYPE_ATTRIBUTES (type1))
!= !lookup_attribute (rtdstr, TYPE_ATTRIBUTES (type2)))
return 0;
+ if (ix86_function_regparm (type1, NULL)
+ != ix86_function_regparm (type2, NULL))
+ return 0;
return 1;
}