aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1998-10-30 05:24:33 -0800
committerRichard Henderson <rth@gcc.gnu.org>1998-10-30 05:24:33 -0800
commit6093f019b9e24360320b3fdd8d856650323fab61 (patch)
treedf0438f06795806a76bcb783122d4c6df196a0d5 /gcc
parentf3196f46a264716802509c97ec993980dafa990a (diff)
downloadgcc-6093f019b9e24360320b3fdd8d856650323fab61.zip
gcc-6093f019b9e24360320b3fdd8d856650323fab61.tar.gz
gcc-6093f019b9e24360320b3fdd8d856650323fab61.tar.bz2
i386.c (i386_comp_type_attributes): Compare whether the attributes are defined, not their tree nodes.
* i386.c (i386_comp_type_attributes): Compare whether the attributes are defined, not their tree nodes. From-SVN: r23457
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 277af43..5948125 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 3729553..3ab7368 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -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;
}