This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/15549] [3.3 Regression] true !< 'a'
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 May 2004 14:14:41 -0000
- Subject: [Bug c/15549] [3.3 Regression] true !< 'a'
- References: <20040520045404.15549.flash@pobox.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From falk at debian dot org 2004-05-27 14:14 -------
Test case:
void abort(void);
__attribute__((noinline))
int lt (_Bool b, unsigned char c) { return b < c; }
int main () {
if (!lt(1, 'a'))
abort ();
}
This is already broken in .00.rtl, which tries to do lt as (c != 0) & (b == 0),
which would be correct if c was also a bool.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15549