This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gfortran] PATCH PR20480 zero is written with non-zero exponent


Hi all,

This patch fixes PR libfortran/20480 (writing zero with ES format) and
another similar case I don't think has been reported (same thing with EN
format). As far as I can tell, those are the only cases left when we
could write 0.0 with a non-zero exponent.

*strapped and regtested on i686-linux for mainline. *strapped and testing
in progress on 4.0. OK for both branches (after regtesting completes on
4.0) with the attached testcase?


PS: unlike my previous patchs, this time I do have my copyright
assignment done and I do have CVS write access. Things are getting
better!



	2005-03-16  Francois-Xavier Coudert  <coudert@clipper.ens.fr>

	PR libfortran/20480
	* write.c (output_float): special check when writing 0.0 with
	  EN and ES formats.



	2005-03-16  Francois-Xavier Coudert  <coudert@clipper.ens.fr>

	PR libfortran/20480
	* pr20480.f90: New test.

Attachment: pr20480.diff
Description: Text document

Attachment: pr20480.f90
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]