From 6093f019b9e24360320b3fdd8d856650323fab61 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 30 Oct 1998 05:24:33 -0800 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 277af435e9f..5948125d3e3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Fri Oct 30 13:23:20 1998 Richard Henderson + + * 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 * configure.in (gxx_include_dir): bitten by autoconf quoting diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 3729553bd21..3ab736892bb 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; } -- 2.30.2