[Bug target/29302] isfinite returns wrong result at -O1
--- Comment #32 from pinskia at gcc dot gnu dot org 2007-01-21 07:00 --- Fixed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED Target Milestone|--- |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302
[Bug target/29302] isfinite returns wrong result at -O1
--- Comment #31 from echristo at gcc dot gnu dot org 2007-01-17 23:30 --- Subject: Bug 29302 Author: echristo Date: Wed Jan 17 23:30:30 2007 New Revision: 120884 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=120884 Log: 2007-01-17 Eric Christopher [EMAIL PROTECTED] Backport from mainline: 2006-12-18 Roger Sayle [EMAIL PROTECTED] Eric Christopher [EMAIL PROTECTED] PR target/29302 * real.c (real_maxval): Correctly handle IBM extended double format. 2007-01-17 Eric Christopher [EMAIL PROTECTED] Backport from mainline: 2006-12-19 Eric Christopher [EMAIL PROTECTED] PR target/29302 * gcc.c-torture/execute/pr29302-1.c: New. Added: branches/gcc-4_2-branch/gcc/testsuite/gcc.c-torture/execute/pr29302-1.c Modified: branches/gcc-4_2-branch/gcc/ChangeLog branches/gcc-4_2-branch/gcc/real.c branches/gcc-4_2-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302
[Bug target/29302] isfinite returns wrong result at -O1
--- Comment #29 from howarth at nitro dot med dot uc dot edu 2006-12-19 14:04 --- The nan_inf_fmt.f90 failures also occur in gcc 4.2 branch. Can we apply this fix there as well? -- howarth at nitro dot med dot uc dot edu changed: What|Removed |Added Known to fail|4.0.1 4.3.0 |4.0.1 4.2.0 4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302
[Bug target/29302] isfinite returns wrong result at -O1
--- Comment #30 from echristo at gcc dot gnu dot org 2006-12-19 20:26 --- Subject: Bug 29302 Author: echristo Date: Tue Dec 19 20:25:49 2006 New Revision: 120058 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=120058 Log: 2006-12-19 Eric Christopher [EMAIL PROTECTED] PR target/29302 * gcc.c-torture/execute/pr29302-1.c: New. Added: trunk/gcc/testsuite/gcc.c-torture/execute/pr29302-1.c Modified: trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302
[Bug target/29302] isfinite returns wrong result at -O1
--- Comment #28 from sayle at gcc dot gnu dot org 2006-12-19 04:17 --- Subject: Bug 29302 Author: sayle Date: Tue Dec 19 04:17:11 2006 New Revision: 120040 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=120040 Log: 2006-12-18 Roger Sayle [EMAIL PROTECTED] Eric Christopher [EMAIL PROTECTED] PR target/29302 * real.c (real_maxval): Correctly handle IBM extended double format. Modified: trunk/gcc/ChangeLog trunk/gcc/real.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302
[Bug target/29302] isfinite returns wrong result at -O1
--- Comment #27 from echristo at apple dot com 2006-12-15 22:42 --- Submitted patch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302
[Bug target/29302] isfinite returns wrong result at -O1
--- Comment #26 from echristo at apple dot com 2006-11-08 00:06 --- I'll take this one since I've got the apple radar on it as well, removing Geoff. -- echristo at apple dot com changed: What|Removed |Added CC|geoffk at gcc dot gnu dot | |org | AssignedTo|unassigned at gcc dot gnu |echristo at apple dot com |dot org | Status|NEW |ASSIGNED Last reconfirmed|2006-11-05 08:20:07 |2006-11-08 00:06:59 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302
[Bug target/29302] isfinite returns wrong result at -O1
--- Comment #25 from fxcoudert at gcc dot gnu dot org 2006-11-05 08:19 --- This is completely a target bug, and I have made a simple C testcase. I filed this with Apple bug reporter under id# 4820385. Adding geoffk in CC list since he wanted a C-only testcase, and now we have one. $ cat ppc_longdouble.c #include stdlib.h #include stdio.h #include math.h void foo_ (long double *y) { long double x; int n; x = *y; n = isfinite(x); if (n == 0) printf (!finite: %d %Lg\n, n, x); else printf (finite: %d %Lg\n, n, x); } int main (void) { long double x; x = 0.0; x = 1 / x; foo_ (x); return 0; } $ gcc-4.0 -g ppc_longdouble.c -O0 ./a.out finite: 1 inf $ gcc-4.0 -g ppc_longdouble.c -O1 ./a.out finite: 1 inf -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added CC||geoffk at gcc dot gnu dot ||org Component|libfortran |target Keywords||wrong-code Known to fail||4.0.1 4.3.0 Last reconfirmed|-00-00 00:00:00 |2006-11-05 08:19:29 date|| Summary|nan_inf_fmt.f90 segfaults on|isfinite returns wrong |Darwin PPC starting with|result at -O1 |Xcode 2.4 | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302
[Bug target/29302] isfinite returns wrong result at -O1
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Status|WAITING |NEW Ever Confirmed|0 |1 Last reconfirmed|2006-11-05 08:19:56 |2006-11-05 08:20:07 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302