From: Richard Henderson Date: Fri, 30 Oct 1998 13:24:33 +0000 (-0800) Subject: i386.c (i386_comp_type_attributes): Compare whether the attributes are defined, not... X-Git-Tag: prereleases/libgcj-0.1~2220 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6093f019b9e24360320b3fdd8d856650323fab61;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 277af435e9f1..5948125d3e3b 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 3729553bd211..3ab736892bb7 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; }