--- Comment #5 from pinskia at gcc dot gnu dot org 2006-11-26 19:51 ---
I have a fix by not never producing MAX_EXPR or MIN_EXPR in reassoc.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-11-26 08:05 ---
Here is a short testcase:
int f(int a, int b)
{
int i;
int c = a>=b?a:b;
for(i = 0;i<1000;i++) ; // Needed otherwise Jump threading gets in the way
int d = c>=a?c:a;
return d;
}
--
http://gcc.gnu.org/
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-11-26 07:58 ---
MAX_EXPR
:)
Reassiocation produces:
aWidth_29 = MAX_EXPR ;
w_30 = MAX_EXPR ;
From:
aWidth_29 = MAX_EXPR ;
w_30 = MAX_EXPR ;
The testcase you provided is undefined which is why it no longer ICEs in 4.3.0