]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386.c (ix86_comp_type_attributes): Check for regparm attributes.
authorMichael Matz <matz@gcc.gnu.org>
Wed, 25 Feb 2004 00:45:43 +0000 (00:45 +0000)
committerMichael Matz <matz@gcc.gnu.org>
Wed, 25 Feb 2004 00:45:43 +0000 (00:45 +0000)
* config/i386/i386.c (ix86_comp_type_attributes): Check for
regparm attributes.

From-SVN: r78410

gcc/config/i386/i386.c

index b7a0a7156cdb51ced858d7fea26d111a5d5bab31..401f4b58a51565f29068bd02a99876821fd28a05 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