[Bug fortran/47039] New: Support warnings/errors for non-F features.

2010-12-22 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47039 Summary: Support warnings/errors for non-F features. Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: fortran AssignedTo:

[Bug libfortran/47268] New: Documentation: missing (Optional) keyword for parameters of get_command_argument() and get_environment_variable()

2011-01-12 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47268 Summary: Documentation: missing (Optional) keyword for parameters of get_command_argument() and get_environment_variable() Product: gcc Version: 4.6.0 Status: UNCO

[Bug fortran/47327] New: Documentation: Link to GCC Errors and Warnings options broken

2011-01-17 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47327 Summary: Documentation: Link to GCC Errors and Warnings options broken Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug gcov-profile/47358] New: Decimal number formatting not localized

2011-01-19 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47358 Summary: Decimal number formatting not localized Product: gcc Version: 4.3.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: gcov-profile AssignedTo: una

[Bug fortran/47377] New: internal compiler error: in fold_convert_loc, at fold-const.c:1906

2011-01-20 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47377 Summary: internal compiler error: in fold_convert_loc, at fold-const.c:1906 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug fortran/47394] New: Internal compiler error when error count limit is reached

2011-01-21 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47394 Summary: Internal compiler error when error count limit is reached Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug fortran/29383] Fortran 2003/F95[TR15580:1999]: Floating point exception (IEEE) support

2011-01-24 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29383 Thomas changed: What|Removed |Added CC||thenlich at users dot

[Bug libfortran/47434] New: Wrong field width for NaN with (F0.n) formatting

2011-01-24 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47434 Summary: Wrong field width for NaN with (F0.n) formatting Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran Assigned

[Bug libfortran/47434] Wrong field width for NaN with (F0.n) formatting

2011-01-24 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47434 --- Comment #2 from Thomas Henlich 2011-01-24 14:37:29 UTC --- A similar issue occurs with the values +Infinity and 0.0: program testnan real :: i, n = 0.0, m = tiny(0.0) i = 1.0 / n print "(F0.2)", i print "(F3.2)", i print

[Bug fortran/47455] New: internal compiler error: in fold_convert_loc, at fold-const.c: 2028

2011-01-25 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47455 Summary: internal compiler error: in fold_convert_loc, at fold-const.c: 2028 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug fortran/47472] New: Rules printed by -M option contains duplicate slash when -J option is used

2011-01-26 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47472 Summary: Rules printed by -M option contains duplicate slash when -J option is used Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug fortran/47485] New: gfortran -M output is incorrect when -MT option is used

2011-01-26 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485 Summary: gfortran -M output is incorrect when -MT option is used Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug fortran/47486] New: gfortran -M exits with fatal error when -o option is used

2011-01-26 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47486 Summary: gfortran -M exits with fatal error when -o option is used Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug libfortran/47434] Wrong field width for NaN with (F0.n) formatting

2011-01-27 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47434 --- Comment #5 from Thomas Henlich 2011-01-27 13:25:15 UTC --- (In reply to comment #3) > The copy of the F2008 standard I have says in 10.7.2.3.2 F editing: > > "When w is zero, the processor selects the field width." My interpretation is this

[Bug libfortran/47434] Wrong field width for NaN with (F0.n) formatting

2011-01-27 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47434 --- Comment #9 from Thomas Henlich 2011-01-27 17:55:13 UTC --- Maybe this should be a command option, possibly defaulting to the current behaviour unless -std=xx is given.

[Bug libfortran/47567] New: Wrong output for small absolute values with F editing

2011-02-01 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47567 Summary: Wrong output for small absolute values with F editing Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran Ass

[Bug libfortran/47567] Wrong output for small absolute values with F editing

2011-02-04 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47567 --- Comment #6 from Thomas Henlich 2011-02-05 07:40:49 UTC --- (In reply to comment #3) > For this special case: > > print "(F1.0)", 0.0 ! => 0 expected * > > Up to now, we have interpreted the last sentence in F95 10.5.1.2.1 F95 > 10.2.1.

[Bug libfortran/47567] Wrong output for small absolute values with F editing

2011-02-04 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47567 --- Comment #7 from Thomas Henlich 2011-02-05 07:45:57 UTC --- (In reply to comment #6) > Regardless of this choice, the following should all print the same result, > which they currently don't. > > print "(F1.0)", 0.0 ! => 0 > print "(F1.0)",

[Bug libfortran/47567] Wrong output for small absolute values with F editing

2011-02-04 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47567 --- Comment #8 from Thomas Henlich 2011-02-05 07:53:40 UTC --- (In reply to comment #6) > In extension, the following should also print the same result: > > print "(F1.0)", 0.0 ! => 0 > print "(F1.0)", 1.0 ! => * > print "(F1.0)", 2.0 ! => *

[Bug libfortran/47567] Wrong output for small absolute values with F editing

2011-02-06 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47567 --- Comment #12 from Thomas Henlich 2011-02-07 07:01:14 UTC --- (In reply to comment #11) > Fixed on trunk. I don't think this is significant enough to justify a > back-port. I am not sure why anyone would use f1.X for anything, so this > exerci

[Bug fortran/47633] New: Result of COMPILER_VERSION() has NULL byte appended

2011-02-07 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47633 Summary: Result of COMPILER_VERSION() has NULL byte appended Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assigned

[Bug libfortran/47567] Wrong output for small absolute values with F editing

2011-02-07 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47567 Thomas Henlich changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug fortran/47659] New: -Wconversion[-extra] should emit warning for constant expressions

2011-02-09 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47659 Summary: -Wconversion[-extra] should emit warning for constant expressions Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 C

[Bug fortran/47660] New: Retain warning text of -Wconversion messages when -Wconversion-extra is in effect

2011-02-09 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47660 Summary: Retain warning text of -Wconversion messages when -Wconversion-extra is in effect Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: enhancement Pr

[Bug libfortran/47567] Wrong output for small absolute values with F editing

2011-02-21 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47567 Thomas Henlich changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug libfortran/47872] New: Alternative syntax for intrinsics should be documented on separate line

2011-02-23 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47872 Summary: Alternative syntax for intrinsics should be documented on separate line Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: trivial Priority: P3

[Bug web/47875] New: What's new section in GFortran wiki page: Wrong function name: TAN2.

2011-02-23 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47875 Summary: What's new section in GFortran wiki page: Wrong function name: TAN2. Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: trivial Priority: P3

[Bug web/47875] What's new section in GFortran wiki page: Wrong function name: TAN2.

2011-02-24 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47875 Thomas Henlich changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug libfortran/47894] New: Documentation text for VERIFY intrinsic function is wrong.

2011-02-25 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47894 Summary: Documentation text for VERIFY intrinsic function is wrong. Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug libfortran/47567] Wrong output for small absolute values with F editing

2011-02-25 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47567 --- Comment #26 from Thomas Henlich 2011-02-25 13:58:51 UTC --- Created attachment 23467 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23467 Programmatic test case for multiple formats

[Bug libfortran/47567] Wrong output for small absolute values with F editing

2011-02-25 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47567 Thomas Henlich changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug libfortran/47894] Documentation text for VERIFY intrinsic function is wrong.

2011-02-27 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47894 Thomas Henlich changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|FIXED

[Bug libfortran/47945] New: REAL(8) output conversion error on MinGW32

2011-03-01 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47945 Summary: REAL(8) output conversion error on MinGW32 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran AssignedTo: un

[Bug libfortran/47945] REAL(8) output conversion error on MinGW32

2011-03-01 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47945 --- Comment #1 from Thomas Henlich 2011-03-01 14:01:32 UTC --- Created attachment 23501 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23501 Test case

[Bug libfortran/47945] REAL(8) output conversion error on MinGW32

2011-03-01 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47945 --- Comment #2 from Thomas Henlich 2011-03-01 14:01:56 UTC --- Created attachment 23502 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23502 C test case

[Bug libfortran/47945] REAL(8) output conversion error on MinGW32

2011-03-01 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47945 --- Comment #4 from Thomas Henlich 2011-03-01 14:44:54 UTC --- (In reply to comment #3) > 0.142857142857142849218750 is still within the accuracy of IEEE > double. > All numbers map to the same IEEE double. This is technically correct;

[Bug libfortran/47945] REAL(8) output conversion error on MinGW32

2011-03-01 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47945 Thomas Henlich changed: What|Removed |Added Severity|normal |minor --- Comment #6 from Thomas Henlich

[Bug libfortran/47945] REAL(8) output conversion error on MinGW32

2011-03-02 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47945 --- Comment #9 from Thomas Henlich 2011-03-02 13:49:15 UTC --- It seems that MinGW has its own implementation of snprintf called __mingw_snprintf which can be activated by defining __USE_MINGW_ANSI_STDIO __mingw_snprintf has the desired behaviou

[Bug libfortran/47567] Wrong output for small absolute values with F editing

2011-03-02 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47567 Thomas Henlich changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|

[Bug libfortran/47945] REAL(8) output conversion error on MinGW32

2011-03-02 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47945 --- Comment #12 from Thomas Henlich 2011-03-02 17:54:34 UTC --- (In reply to comment #11) > From libgfortran/libgfortran.h: > > #if defined __MINGW32__ > # define _POSIX 1 > # define gfc_printf gnu_printf > #else Since the comment above that

[Bug testsuite/47965] New: gfortran testsuite failures on mingw32

2011-03-03 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47965 Summary: gfortran testsuite failures on mingw32 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite AssignedTo: unassig

[Bug libfortran/47945] REAL(8) output conversion error on MinGW32

2011-03-03 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47945 --- Comment #16 from Thomas Henlich 2011-03-03 14:58:35 UTC --- My _mingw.h has the following: #if defined(_POSIX) && !defined(__USE_MINGW_ANSI_STDIO) /* Enable __USE_MINGW_ANSI_STDIO if _POSIX defined * and If user did _not_ specify it explici

[Bug libfortran/47945] REAL(8) output conversion error on MinGW32

2011-03-03 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47945 Thomas Henlich changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug libfortran/47945] REAL(8) output conversion error on MinGW32

2011-03-03 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47945 --- Comment #18 from Thomas Henlich 2011-03-04 06:53:33 UTC --- Created attachment 23537 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23537 Test 1 for pedantic IO rounding

[Bug libfortran/47945] REAL(8) output conversion error on MinGW32

2011-03-03 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47945 --- Comment #19 from Thomas Henlich 2011-03-04 06:54:03 UTC --- Created attachment 23538 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23538 Test 2 for pedantic IO rounding

[Bug libfortran/47945] REAL(8) output conversion error on MinGW32

2011-03-03 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47945 --- Comment #20 from Thomas Henlich 2011-03-04 06:56:56 UTC --- Added two tests just in case this comes up again.

[Bug fortran/47984] New: Pointer dummy argument mismatch not detected by Fortran compiler

2011-03-04 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47984 Summary: Pointer dummy argument mismatch not detected by Fortran compiler Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Co

[Bug fortran/47984] Pointer dummy argument mismatch not detected by Fortran compiler

2011-03-04 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47984 --- Comment #3 from Thomas Henlich 2011-03-04 18:58:06 UTC --- Sorry, I don't understand why you consider the bug report invalid. You may very well be correct, but please explain. I am not such a Fortran expert, so I may have missed something her

[Bug libfortran/50105] Possibly: [4.3/4.4/4.5/4.6/4.7 Regression] I/O with g6.5 - wrong number of "**" shown

2011-08-17 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50105 --- Comment #3 from Thomas Henlich 2011-08-17 07:36:54 UTC --- Maybe we can trace back the change in GFortran between 4.1 and 4.3 and find out why it was changed?

[Bug fortran/47659] -Wconversion[-extra] should emit warning for constant expressions

2011-09-05 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47659 --- Comment #7 from Thomas Henlich 2011-09-05 07:55:13 UTC --- Would it be feasible to generate a warning for line 3 of the following: real(8) :: a, b a = 1.4d0 b = a / 1.3

[Bug other/48111] libquadmath: strtoflt128 bug on MinGW

2016-12-14 Thread thenlich at users dot sourceforge.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48111 Thomas Henlich changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libfortran/48852] Invalid spaces in list-directed output of complex constants

2015-04-25 Thread thenlich at users dot sourceforge.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48852 --- Comment #12 from Thomas Henlich --- (In reply to Jerry DeLisle from comment #10) > gfortran currently does this with default formatting, list directed outout: > - > ( 1., 0.) ( -1.00

[Bug fortran/47984] Pointer dummy argument mismatch not detected by Fortran compiler

2011-03-06 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47984 --- Comment #6 from Thomas Henlich 2011-03-07 06:26:24 UTC --- RTFM, I should have. Thank you for your help.

[Bug libfortran/48047] New: Incorrect output rounding of double precision numbers

2011-03-09 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48047 Summary: Incorrect output rounding of double precision numbers Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran Ass

[Bug libfortran/48054] New: Documentation for LOG intrinsic function is ambiguous

2011-03-09 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48054 Summary: Documentation for LOG intrinsic function is ambiguous Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran Ass

[Bug libfortran/48047] Incorrect output rounding of double precision numbers

2011-03-10 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48047 --- Comment #4 from Thomas Henlich 2011-03-10 09:36:52 UTC --- Created attachment 23610 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23610 Patch to fix rounding issue Proposing this patch (untested) for field width. Trading 2 extra bytes

[Bug libfortran/48047] Incorrect output rounding of double precision numbers

2011-03-10 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48047 --- Comment #5 from Thomas Henlich 2011-03-10 09:39:03 UTC --- Created attachment 23611 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23611 Comprehensive test for IEEE 754-2008 clause 5.12.2 compliant output rounding

[Bug libfortran/48047] Incorrect output rounding of double precision numbers

2011-03-10 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48047 Thomas Henlich changed: What|Removed |Added Attachment #23611|0 |1 is obsolete|

[Bug other/48111] New: libquadmath: strtoflt128 bug on MinGW

2011-03-14 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48111 Summary: libquadmath: strtoflt128 bug on MinGW Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassig...@g

[Bug libfortran/48488] New: Wrong default format for real numbers

2011-04-07 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48488 Summary: Wrong default format for real numbers Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran AssignedTo: unassig

[Bug libfortran/48488] Wrong default format for real numbers

2011-04-07 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48488 --- Comment #2 from Thomas Henlich 2011-04-07 11:22:49 UTC --- Ok, now I found that this was changed in http://gcc.gnu.org/viewcvs?view=revision&revision=128967 The testcase says: > ! This tests that the default formats for formatted I/O of rea

[Bug libfortran/48511] New: Implement Steele-White algorithm for numeric output

2011-04-08 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48511 Summary: Implement Steele-White algorithm for numeric output Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: libfortran

[Bug libfortran/48511] Implement Steele-White algorithm for numeric output

2011-04-10 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48511 --- Comment #5 from Thomas Henlich 2011-04-10 10:19:47 UTC --- (In reply to comment #4) > (In reply to comment #3) > > Does any of the Fortran edit descriptors require, or for that matter allow, > > this kind of "shortest decimal representation"

[Bug libfortran/48589] New: Invalid G0/G0.d editing for NaN/infinity

2011-04-13 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48589 Summary: Invalid G0/G0.d editing for NaN/infinity Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran AssignedTo: unas

[Bug libfortran/48602] New: Invalid F conversion of G descriptor for values close to powers of 10

2011-04-14 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602 Summary: Invalid F conversion of G descriptor for values close to powers of 10 Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug libfortran/48615] New: Invalid UP/DOWN rounding with E and ES descriptors

2011-04-15 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48615 Summary: Invalid UP/DOWN rounding with E and ES descriptors Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran Assign

[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10

2011-04-15 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602 --- Comment #3 from Thomas Henlich 2011-04-15 19:58:55 UTC --- (In reply to comment #2) > I am missing something here: > > "print "(RU,G15.2)", .991d0 > prints 1.00 but the expected result is 1.0 because 1 - r * 10**-2 < .991 with > r > = 1 bec

[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10

2011-04-15 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602 --- Comment #5 from Thomas Henlich 2011-04-15 20:41:02 UTC --- (In reply to comment #4) > OK I knew I was "looking" at it wrong. The formulas you mention we are using > and are in write_float.def starting at line 798. The table is there as well.

[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10

2011-04-15 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602 --- Comment #8 from Thomas Henlich 2011-04-16 06:42:52 UTC --- (In reply to comment #7) > - if ((m > 0.0 && m < 0.1 - 0.05 * rexp_d) || (rexp_d * (m + 0.5) >= 1.0) ||\ > + if ((m > 0.0 && m < 0.1 - r * rexp_d) || (rexp_d * (m + r) >= 1.0) ||\

[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10

2011-04-16 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602 --- Comment #10 from Thomas Henlich 2011-04-16 15:46:14 UTC --- (In reply to comment #8) > (In reply to comment #7) > > - if ((m > 0.0 && m < 0.1 - 0.05 * rexp_d) || (rexp_d * (m + 0.5) >= 1.0) > > ||\ > > + if ((m > 0.0 && m < 0.1 - r * rexp_

[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10

2011-04-16 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602 --- Comment #14 from Thomas Henlich 2011-04-16 17:28:16 UTC --- (In reply to comment #13) > 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.

[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10

2011-04-16 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602 --- Comment #15 from Thomas Henlich 2011-04-16 17:45:05 UTC --- And maybe for performance improvement we should transform 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

[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10

2011-04-17 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602 --- Comment #17 from Thomas Henlich 2011-04-17 13:25:25 UTC --- (In reply to comment #16) > I see another rounding issue with this: > > integer, parameter :: RT=8 > print *, 0.09_RT, " RD:" > print "(RD,G15.2)", 0.09_RT > print "

[Bug libfortran/48651] DTOA float conversion issue

2011-04-17 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48651 --- Comment #3 from Thomas Henlich 2011-04-17 18:34:15 UTC --- (In reply to comment #2) > hmm, notice the typo! i have set ldnum to 0.0 but it still is printing the > value of dnum. What am I doing wrong. > > $ cat sprint.c > #include > > int

[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10

2011-04-17 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602 --- Comment #23 from Thomas Henlich 2011-04-18 05:59:55 UTC --- Created attachment 24025 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24025 Updated test

[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10

2011-04-17 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602 --- Comment #22 from Thomas Henlich 2011-04-18 05:59:14 UTC --- (In reply to comment #7) > + case ROUND_ZERO:\ > +r = sign_bit ? 0.0 : 1.0;\ This should read: r = sign_bit ? 1.0 : 0.0;\ Attaching modified test.

[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10

2011-04-17 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602 --- Comment #24 from Thomas Henlich 2011-04-18 06:32:06 UTC --- call check_all(0.995_RT, 15, 2, 0) This still fails (with RC,G15.2 /= RC,F11.1). We need to look at why. I am aware that N=.995 is .994... internally, but so is the value 1 - r

[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10

2011-04-18 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602 --- Comment #26 from Thomas Henlich 2011-04-18 08:40:12 UTC --- Created attachment 24027 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24027 Test program for optimization

[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10

2011-04-18 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602 --- Comment #25 from Thomas Henlich 2011-04-18 08:39:17 UTC --- After some testing, I found the problem to be optimization-related. It seems the following term is calculated as a long double and not rounded before the "if (m < temp)" comparison,

[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10

2011-04-18 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602 --- Comment #32 from Thomas Henlich 2011-04-19 06:09:27 UTC --- (In reply to comment #30) > I can not reproduce the issue with optimization issue on my linux system > x86-64. > > Thomas, what platform do you see the problem on? I only see it on

[Bug libfortran/48684] New: Incorrect field alignment with Gw.dEe descriptor

2011-04-19 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48684 Summary: Incorrect field alignment with Gw.dEe descriptor Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: libfortran AssignedT

[Bug libfortran/48682] Incorrect field justification with Gw.d edit descriptor

2011-04-19 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48682 Thomas Henlich changed: What|Removed |Added CC||thenlich at users dot

[Bug libfortran/48684] Incorrect field alignment with Gw.dEe descriptor

2011-04-19 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48684 --- Comment #2 from Thomas Henlich 2011-04-19 14:59:36 UTC --- (In reply to comment #1) > Isn't this related to PR 48682 ? Just a coincidence. BTW PR 48682 can be closed as invalid. BTW: Above should read: The conversion in this case is F(w-n).

[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10

2011-04-19 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602 --- Comment #37 from Thomas Henlich 2011-04-20 06:43:37 UTC --- The same issue exists with the first comparison (decision between FMT_E and FMT_F). Consider: print "(g35.25)", 0.095d0 ! > 0.95..11..E-01 print "(g35.25)", 0.095_10 print "(RC

[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10

2011-04-20 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602 --- Comment #38 from Thomas Henlich 2011-04-20 12:38:53 UTC --- As an alternative we might consider leaving the code as it was before and instead putting OUTPUT_FLOAT_FMT_G(4) OUTPUT_FLOAT_FMT_G(8) OUTPUT_FLOAT_FMT_G(10) into separate files a

[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10

2011-04-21 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602 --- Comment #41 from Thomas Henlich 2011-04-21 16:36:14 UTC --- Actually it may be even simpler than that: We already know how many significant digits (d) we want in the output string, and at what digit to round. So we can write the digits of th

[Bug libfortran/48615] Invalid UP/DOWN rounding with E and ES descriptors

2011-04-23 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48615 --- Comment #1 from Thomas Henlich 2011-04-23 07:49:33 UTC --- I think I found the problematic code in write_float: if (f->format == FMT_F || f->format == FMT_EN || f->format == FMT_G || ((f->format == FMT_D || f->format == FMT_E)

[Bug libfortran/48615] Invalid UP/DOWN rounding with E and ES descriptors

2011-04-23 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48615 --- Comment #2 from Thomas Henlich 2011-04-23 11:06:28 UTC --- The second branch (let printf do rounding) should only be choosen if the requested rounding mode is the same as printf uses (nearest/compatible?) and either - the format is ES or - th

[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10

2011-04-23 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602 --- Comment #43 from Thomas Henlich 2011-04-23 11:44:45 UTC --- It seems the required changes would fit in nicely in output_float(): We can treat FMT_G like FMT_E. After the rounding step, i.e. when the final value of the variable e in output_fl

[Bug libfortran/48615] Invalid UP/DOWN rounding with E and ES descriptors

2011-04-23 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48615 --- Comment #4 from Thomas Henlich 2011-04-23 13:19:46 UTC --- Created attachment 24081 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24081 Revised test case

[Bug libfortran/48615] Invalid UP/DOWN rounding with E and ES descriptors

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

[Bug libfortran/48615] Invalid UP/DOWN rounding with E and ES descriptors

2011-04-24 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48615 --- Comment #8 from Thomas Henlich 2011-04-24 21:41:16 UTC --- I don't have access to a build system until Tuesday, so I couldn't test your patch. But I'm not sure I understand what you are trying to do. I see that you added one more digit in th

[Bug libfortran/48615] Invalid UP/DOWN rounding with E and ES descriptors

2011-04-25 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48615 --- Comment #12 from Thomas Henlich 2011-04-25 08:43:32 UTC --- The patch submitted to the list is different to the one I based my comments on. My mistake. Good work. With the current method of letting printf do the conversion, there seems to b

[Bug libfortran/48684] Incorrect field alignment with Gw.dEe descriptor

2011-04-25 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48684 --- Comment #6 from Thomas Henlich 2011-04-25 08:46:38 UTC --- (In reply to comment #5) > On 04/23/2011 02:27 PM, jvdelisle at gcc dot gnu.org wrote: > --- snip --- > > > > Unpatched gfortran and ifort give: > > I meant patched gfortran and ifor

[Bug libfortran/48589] Invalid G0/G0.d editing for NaN/infinity

2011-04-25 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48589 Thomas Henlich changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|

[Bug libfortran/48785] New: BOZ editing of real numbers not working with -std=f2008

2011-04-26 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48785 Summary: BOZ editing of real numbers not working with -std=f2008 Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

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

2011-04-27 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787 Summary: Invalid UP rounding with F editing Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: libfortran AssignedTo: unassig...@

[Bug libfortran/48511] Implement Steele-White algorithm for numeric output

2011-04-27 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48511 --- Comment #7 from Thomas Henlich 2011-04-27 14:11:10 UTC --- Gay's routines (http://www.netlib.org/fp/) can handle double, float, extended, quad; rounding directions may be specified. They can output a given number of digits (compatible to all

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

2011-04-27 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48787 --- Comment #2 from Thomas Henlich 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 editing with non-zero scale factor.

[Bug libfortran/48511] Implement Steele-White algorithm for numeric output

2011-04-28 Thread thenlich at users dot sourceforge.net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48511 --- Comment #11 from Thomas Henlich 2011-04-28 10:01:45 UTC --- (In reply to comment #10) > As an addendum to the above, one thing we could do with modest effort and > without importing Gay's code would be to remove trailing zeros for G0 (and > m

  1   2   >