[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10
jvdelisle at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Apr 16 17:07:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602
--- Comment #13 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2011-04-16 17:06:44 UTC ---
OK, here is what I have settled on for the IF clause after checking the
factoring.
rexp_d = calculate_exp_ ## x (-d);\
if ((m > 0.0 && m < 0.1 - 0.1 * r * rexp_d) || (rexp_d * (m + r) >= 1.0) ||\
((m == 0.0) && !(compile_options.allow_std & GFC_STD_F2003)))\
{ \
newf->format = FMT_E;\
newf->u.real.w = w;\
newf->u.real.d = d;\
newf->u.real.e = e;\
nb = 0;\
goto finish;\
}\
Regression testing now.
More information about the Gcc-bugs
mailing list