------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-27 04:10 ------- Finnally found a C example: Compile the folllowing with -O2 -ffast-math -ftrapping-math and you will get the failure.
#include <math.h> int Fore (double lo, double hi) { int r; double t; double t1; double t2; int tt; t1 = fabs(lo); t2 = fabs(hi); t = t1 >= t2 ? t1 : t2; tt = (t >= 1.0e+1); if (tt == 0) goto L12; L11:; r = 2; goto L2; L12:; r = 2; L1:; t = t / 1.0e+1; r = r + 1; tt = (t >= 1.0e+1); if (tt == 0) goto L1; L2:; return r; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17956