[Bug libfortran/48787] Invalid UP rounding with F editing

2011-05-02 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787 --- Comment #14 from Thomas Henlich thenlich at users dot sourceforge.net 2011-05-02 13:24:27 UTC --- Created attachment 24164 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24164 Revised patch including rounding down negative numbers Sorry,

[Bug libfortran/48787] Invalid UP rounding with F editing

2011-05-02 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787 Thomas Henlich thenlich at users dot sourceforge.net changed: What|Removed |Added Attachment #24138|0 |1

[Bug libfortran/48787] Invalid UP rounding with F editing

2011-05-02 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787 --- Comment #16 from Jerry DeLisle jvdelisle at gcc dot gnu.org 2011-05-02 19:05:51 UTC --- Yes and we are honing in on it now. I suspected the RD on negatives. Just did not have time to check it yet. Thansk for continued examples.

[Bug libfortran/48787] Invalid UP rounding with F editing

2011-05-01 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787 --- Comment #12 from Jerry DeLisle jvdelisle at gcc dot gnu.org 2011-05-01 12:37:07 UTC --- Author: jvdelisle Date: Sun May 1 12:37:05 2011 New Revision: 173233 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=173233 Log: 2011-05-01 Jerry

[Bug libfortran/48787] Invalid UP rounding with F editing

2011-05-01 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787 --- Comment #11 from Jerry DeLisle jvdelisle at gcc dot gnu.org 2011-05-01 12:32:20 UTC --- Author: jvdelisle Date: Sun May 1 12:32:18 2011 New Revision: 173231 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=173231 Log: 2011-05-01 Jerry

[Bug libfortran/48787] Invalid UP rounding with F editing

2011-05-01 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787 --- Comment #13 from Jerry DeLisle jvdelisle at gcc dot gnu.org 2011-05-02 03:29:49 UTC --- Fixed on trunk

[Bug libfortran/48787] Invalid UP rounding with F editing

2011-04-30 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787 --- Comment #8 from Thomas Henlich thenlich at users dot sourceforge.net 2011-04-30 11:58:36 UTC --- I think for rounding up we need to test if ALL the cut off digits are zeros. One more thought: It might be (statistically) faster to scan the

[Bug libfortran/48787] Invalid UP rounding with F editing

2011-04-30 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787 --- Comment #9 from Jerry DeLisle jvdelisle at gcc dot gnu.org 2011-04-30 12:43:47 UTC --- The trick here is figuring out the limits of the scan on the left end of the string. We can have things like. 2345638418

[Bug libfortran/48787] Invalid UP rounding with F editing

2011-04-30 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787 --- Comment #10 from Thomas Henlich thenlich at users dot sourceforge.net 2011-04-30 15:56:35 UTC --- The start to scan is the digit corresponding to d+1. e.g. PRINT (RU,F0.4), .162548148 - .1626 because48148 0

[Bug libfortran/48787] Invalid UP rounding with F editing

2011-04-29 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787 --- Comment #3 from Jerry DeLisle jvdelisle at gcc dot gnu.org 2011-04-29 05:59:45 UTC --- A tentative patch: Index: write_float.def === --- write_float.def(revision 172909) +++

[Bug libfortran/48787] Invalid UP rounding with F editing

2011-04-29 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787 Thomas Henlich thenlich at users dot sourceforge.net changed: What|Removed |Added Attachment #24120|0 |1

[Bug libfortran/48787] Invalid UP rounding with F editing

2011-04-29 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787 --- Comment #5 from Jerry DeLisle jvdelisle at gcc dot gnu.org 2011-04-29 14:56:08 UTC --- Author: jvdelisle Date: Fri Apr 29 14:56:02 2011 New Revision: 173166 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=173166 Log: 2011-04-29 Jerry

[Bug libfortran/48787] Invalid UP rounding with F editing

2011-04-29 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787 --- Comment #6 from Jerry DeLisle jvdelisle at gcc dot gnu.org 2011-04-29 15:09:03 UTC --- Author: jvdelisle Date: Fri Apr 29 15:08:57 2011 New Revision: 173168 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=173168 Log: 2011-04-29 Jerry

Re: [Bug libfortran/48787] Invalid UP rounding with F editing

2011-04-29 Thread Jerry DeLisle
On 04/29/2011 12:14 AM, thenlich at users dot sourceforge.net wrote: ---snip--- The suggested patch fails on examples in this test where d0. I think for rounding up we need to test if ALL the cut off digits are zeros. I have committed the whole ball of wax. I really needed to do this

[Bug libfortran/48787] Invalid UP rounding with F editing

2011-04-29 Thread jvdelisle at frontier dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787 --- Comment #7 from jvdelisle at frontier dot com 2011-04-29 15:55:14 UTC --- On 04/29/2011 12:14 AM, thenlich at users dot sourceforge.net wrote: ---snip--- The suggested patch fails on examples in this test where d0. I think for rounding up

[Bug libfortran/48787] Invalid UP rounding with F editing

2011-04-28 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787 --- Comment #2 from Thomas Henlich thenlich at users dot sourceforge.net 2011-04-28 06:41:27 UTC --- Created attachment 24120 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24120 Testcase for F, E, G editing Bug also applies to E and G

[Bug libfortran/48787] Invalid UP rounding with F editing

2011-04-27 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787 Jerry DeLisle jvdelisle at gcc dot gnu.org changed: What|Removed |Added AssignedTo|unassigned at gcc dot |jvdelisle at