* config/i386/i386.c (ix86_comp_type_attributes): Check for
authormatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Feb 2004 00:45:43 +0000 (00:45 +0000)
committermatz <matz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Feb 2004 00:45:43 +0000 (00:45 +0000)
regparm attributes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78410 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/i386/i386.c

index b7a0a71..401f4b5 100644 (file)
@@ -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;
 }
 \f