[patch, libfortran] PR38504 double minus sign when printing integer

Jerry DeLisle jvdelisle@verizon.net
Sun Dec 14 03:38:00 GMT 2008

This patch is self explanatory and fixes the problem by checking for a '-' given 
by gfc_itoa.

Regression tested on x86-64.

I will commit under obvious and simple rule.



2008-12-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/38504
	io/write.c (write_decimal): Skip extra sign '-' at beginning of string
	returned by gfc_itoa.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr38504.diff
Type: text/x-diff
Size: 709 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081214/1864fb40/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fmt_int_sign.f90
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081214/1864fb40/attachment.f90>

More information about the Gcc-patches mailing list