This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/15549] [3.3 Regression] true !< 'a'


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]