mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-10 07:04:27 +08:00
re PR fortran/38285 (Wrong I/O output: Interaction between F and P for output)
2008-12-04 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/38285 * write_float.def (WRITE_FLOAT): Zero the float value for special case only if scale_factor = 0. From-SVN: r142455
This commit is contained in:
parent
cd8235c00e
commit
e318b7602b
@ -1,3 +1,9 @@
|
||||
2008-12-04 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR fortran/38285
|
||||
* write_float.def (WRITE_FLOAT): Zero the float value for special case
|
||||
only if scale_factor = 0.
|
||||
|
||||
2008-11-23 Thomas Koenig <tkoenig@gcc.gnu.org>
|
||||
|
||||
PR libfortran/38234
|
||||
|
@ -760,7 +760,8 @@ sprintf (buffer, "%+-#" STR(MIN_FIELD_WIDTH) ".*" \
|
||||
return;\
|
||||
}\
|
||||
tmp = sign_bit ? -tmp : tmp;\
|
||||
if (f->u.real.d == 0 && f->format == FMT_F)\
|
||||
if (f->u.real.d == 0 && f->format == FMT_F\
|
||||
&& dtp->u.p.scale_factor == 0)\
|
||||
{\
|
||||
if (tmp < 0.5)\
|
||||
tmp = 0.0;\
|
||||
|
Loading…
Reference in New Issue
Block a user