------- Additional Comments From markus at oberhumer dot com  2005-04-25 00:38 
-------
Is this optimization really legal in C/C++? Could some language lawyer look at
this (and check the output when compiling with -O3):

#include <limits.h>

int f1(int i) {  return (i - 2) > i; }
int f2(int i) {  return (i + 2) > i; }

int g1(void)  { return f1(INT_MIN); }
int g2(void)  { return f2(INT_MAX); }


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20922

Reply via email to