i386.c (i386_comp_type_attributes): Compare whether the attributes are defined, not...
authorRichard Henderson <rth@cygnus.com>
Fri, 30 Oct 1998 13:24:33 +0000 (05:24 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 30 Oct 1998 13:24:33 +0000 (05:24 -0800)
        * i386.c (i386_comp_type_attributes): Compare whether the
        attributes are defined, not their tree nodes.

From-SVN: r23457

gcc/ChangeLog
gcc/config/i386/i386.c

index 277af435e9f15ebf7d282544e82516e069eed597..5948125d3e3b04119947cd9a2578681919838fc3 100644 (file)
@@ -1,3 +1,8 @@
+Fri Oct 30 13:23:20 1998  Richard Henderson  <rth@cygnus.com>
+
+       * i386.c (i386_comp_type_attributes): Compare whether the 
+       attributes are defined, not their tree nodes.
+
 Fri Oct 30 11:39:47 1998  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * configure.in (gxx_include_dir): bitten by autoconf quoting
index 3729553bd2111c7509a8b39784d15e9e2884571a..3ab736892bb72b4a27782de18ce2203354566db4 100644 (file)
@@ -632,8 +632,8 @@ i386_comp_type_attributes (type1, type2)
     return 1;
 
   /* Check for mismatched return types (cdecl vs stdcall).  */
-  if (lookup_attribute (rtdstr, TYPE_ATTRIBUTES (type1))
-      != lookup_attribute (rtdstr, TYPE_ATTRIBUTES (type2)))
+  if (!lookup_attribute (rtdstr, TYPE_ATTRIBUTES (type1))
+      != !lookup_attribute (rtdstr, TYPE_ATTRIBUTES (type2)))
     return 0;
   return 1;
 }