public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/29302]  New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
@ 2006-09-30 20:45 howarth at nitro dot med dot uc dot edu
  2006-09-30 20:46 ` [Bug libfortran/29302] " howarth at nitro dot med dot uc dot edu
                   ` (32 more replies)
  0 siblings, 33 replies; 34+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-09-30 20:45 UTC (permalink / raw)
  To: gcc-bugs

With the Xcode 2.4 release, the nan_inf_fmt.f90 testcase in 
gfortran.fortran-torture/execute
has begun to segfault on Darwin PPC at both -m32 and -m64. The backtrace from a
segfault
is...

Starting program: /Users/howarth/testdir/nan_inf_fmt/a.out 
Reading symbols for shared libraries .++ done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x3fffe615
0x90101fc8 in strtol_l ()
(gdb) bt
#0  0x90101fc8 in strtol_l ()
#1  0x00255810 in output_float (dtp=0xbfffeb30, f=0x1808c50, value=inf) at
../../../gcc-4.2-20060928/libgfortran/io/write.c:496
#2  0x00256124 in write_float (dtp=0xbfffeb30, f=0x1808c50, source=0xa <Address
0xa out of bounds>, len=-1610603800) at
../../../gcc-4.2-20060928/libgfortran/io/write.c:912
#3  0x002507ec in formatted_transfer (dtp=0xbfffeb30, type=BT_REAL, p=0xa,
kind=4, size=4, nelems=1) at
../../../gcc-4.2-20060928/libgfortran/io/transfer.c:954
#4  0x0024eac8 in *__gfortran_transfer_real (dtp=0x250314, p=0xbfffeaf8,
kind=4) at ../../../gcc-4.2-20060928/libgfortran/io/transfer.c:1237
#5  0x00002a04 in MAIN__ () at nan_inf_fmt.f90:17
#6  0x00003af0 in main (argc=1073735189, argv=0x0) at
../../../gcc-4.2-20060928/libgfortran/fmain.c:18

It has been suggested on the list that this might be due to size mismatch and
that
the new Xcode 2.4 is exposing a latent bug in libgfortran...

http://gcc.gnu.org/ml/fortran/2006-09/msg00103.html


-- 
           Summary: nan_inf_fmt.f90 segfaults on Darwin PPC starting with
                    Xcode 2.4
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: howarth at nitro dot med dot uc dot edu
 GCC build triplet: powerpc-apple-darwin8
  GCC host triplet: powerpc-apple-darwin8
GCC target triplet: powerpc-apple-darwin8


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
@ 2006-09-30 20:46 ` howarth at nitro dot med dot uc dot edu
  2006-09-30 21:09 ` jvdelisle at gcc dot gnu dot org
                   ` (31 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-09-30 20:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from howarth at nitro dot med dot uc dot edu  2006-09-30 20:46 -------
Created an attachment (id=12362)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12362&action=view)
assembly file for nan_inf_fmt that seqfaults on Darwin PPC with Xcode 2.4


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
  2006-09-30 20:46 ` [Bug libfortran/29302] " howarth at nitro dot med dot uc dot edu
@ 2006-09-30 21:09 ` jvdelisle at gcc dot gnu dot org
  2006-09-30 21:36 ` jvdelisle at gcc dot gnu dot org
                   ` (30 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-09-30 21:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jvdelisle at gcc dot gnu dot org  2006-09-30 21:09 -------
I will see if I can spot something here.  Jack, I will need your help testing.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
  2006-09-30 20:46 ` [Bug libfortran/29302] " howarth at nitro dot med dot uc dot edu
  2006-09-30 21:09 ` jvdelisle at gcc dot gnu dot org
@ 2006-09-30 21:36 ` jvdelisle at gcc dot gnu dot org
  2006-09-30 21:53 ` jvdelisle at gcc dot gnu dot org
                   ` (29 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-09-30 21:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jvdelisle at gcc dot gnu dot org  2006-09-30 21:36 -------
Valgrind shows tight as a drum on i686-linux.  Do you have something equivalent
to valgrind for Darwin PPC?

I am not seeing anything obvious in the code. On i686 the call at line 496 is
to atoi().  Your system is showing a strtol_l.  These are slightly different
and maybe atoi() is mapped to strtol_l on this archtecture.  I don't know.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (2 preceding siblings ...)
  2006-09-30 21:36 ` jvdelisle at gcc dot gnu dot org
@ 2006-09-30 21:53 ` jvdelisle at gcc dot gnu dot org
  2006-09-30 22:50 ` howarth at nitro dot med dot uc dot edu
                   ` (28 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-09-30 21:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jvdelisle at gcc dot gnu dot org  2006-09-30 21:53 -------
Jack, I would forward this one to Apple.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (3 preceding siblings ...)
  2006-09-30 21:53 ` jvdelisle at gcc dot gnu dot org
@ 2006-09-30 22:50 ` howarth at nitro dot med dot uc dot edu
  2006-10-01  0:40 ` kargl at gcc dot gnu dot org
                   ` (27 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-09-30 22:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from howarth at nitro dot med dot uc dot edu  2006-09-30 22:50 -------
Jerry,
     I've run this with guardmalloc...

http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/libgmalloc.3.html

using all the permutations and nothing gets triggered.
               Jack
ps It seems the crashes are specific to those lines that have...

       write(l,fmt=fmt)pos_inf

or

       write(l,fmt=fmt)neg_inf

The lines with...

       write(l,fmt=fmt)nan

never cause a segfault so a minimal failing testcase is...

       implicit none
       character*40 l
       character*12 fmt
       real zero, pos_inf
       zero = 0.0

       pos_inf =  1.0/zero
       fmt = '(F0.0)'
       write(l,fmt=fmt)pos_inf
       end


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (4 preceding siblings ...)
  2006-09-30 22:50 ` howarth at nitro dot med dot uc dot edu
@ 2006-10-01  0:40 ` kargl at gcc dot gnu dot org
  2006-10-04 23:57 ` geoffk at gcc dot gnu dot org
                   ` (26 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: kargl at gcc dot gnu dot org @ 2006-10-01  0:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from kargl at gcc dot gnu dot org  2006-10-01 00:40 -------
(In reply to comment #5)
> Jerry,
>      I've run this with guardmalloc...
>
> 

Jack, This is an Apple library problem.  Please report the
inappropriate use of strtol_l to Apple.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (5 preceding siblings ...)
  2006-10-01  0:40 ` kargl at gcc dot gnu dot org
@ 2006-10-04 23:57 ` geoffk at gcc dot gnu dot org
  2006-10-05  2:04 ` howarth at nitro dot med dot uc dot edu
                   ` (25 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2006-10-04 23:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from geoffk at gcc dot gnu dot org  2006-10-04 23:57 -------
Probably atoi() tail-calls strtol_l.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (6 preceding siblings ...)
  2006-10-04 23:57 ` geoffk at gcc dot gnu dot org
@ 2006-10-05  2:04 ` howarth at nitro dot med dot uc dot edu
  2006-10-06  1:32 ` howarth at nitro dot med dot uc dot edu
                   ` (24 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-10-05  2:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from howarth at nitro dot med dot uc dot edu  2006-10-05 02:03 -------
Geoff,
     Can you expand on this? Assuming it is a atoi() tail-calls strtol_l
why is Darwin the only arch effected and what recourse do we have
in fixing this? I tried a brute force replacement of the atoi() with a strl()
in libgfortran/io/write.c and nan_inf_fmt still segfaults...

  /* Read the exponent back in.  */
  /* e = atoi (&buffer[ndigits + 3]) + 1; */
  e = strtol(&buffer[ndigits + 3], (char **)NULL, 10);
  e = e +1;


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (7 preceding siblings ...)
  2006-10-05  2:04 ` howarth at nitro dot med dot uc dot edu
@ 2006-10-06  1:32 ` howarth at nitro dot med dot uc dot edu
  2006-10-31  1:02 ` geoffk at gcc dot gnu dot org
                   ` (23 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-10-06  1:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from howarth at nitro dot med dot uc dot edu  2006-10-06 01:32 -------
Geoff,
     This bug is also radar://4759173. I've been asked to...

Please debug and produce a small self-contained (that is, not including
gfortran) testcase showing what goes wrong.

Could you expand in that radar report on what you suspect is
causing this?
            Jack


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (8 preceding siblings ...)
  2006-10-06  1:32 ` howarth at nitro dot med dot uc dot edu
@ 2006-10-31  1:02 ` geoffk at gcc dot gnu dot org
  2006-10-31  1:03 ` geoffk at gcc dot gnu dot org
                   ` (22 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2006-10-31  1:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from geoffk at gcc dot gnu dot org  2006-10-31 01:02 -------
Hi Jack,

I have no idea what's causing this, and I don't know why you think I do.  I am
the one asking you to provide a testcase in the Radar.  You're claiming that
this is a bug in Xcode 2.4 (which is supported by Apple), and not a bug in
gfortran (which is not supported by Apple).  I am asking for a testcase which
removes the non-supported part and shows the bug.

My comment about strtol_l is because if atoi() tail-calls strtol_l, possibly
after changing parameters, then you would see strtol_l in the backtrace; that
would be normal and not a bug or a symptom of a bug.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (9 preceding siblings ...)
  2006-10-31  1:02 ` geoffk at gcc dot gnu dot org
@ 2006-10-31  1:03 ` geoffk at gcc dot gnu dot org
  2006-10-31  3:18 ` jvdelisle at gcc dot gnu dot org
                   ` (21 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2006-10-31  1:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from geoffk at gcc dot gnu dot org  2006-10-31 01:03 -------
Please do not add 'geoffk@apple.com' to the CC list of any bugzilla bug.


-- 

geoffk at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|geoffk at apple dot com     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (10 preceding siblings ...)
  2006-10-31  1:03 ` geoffk at gcc dot gnu dot org
@ 2006-10-31  3:18 ` jvdelisle at gcc dot gnu dot org
  2006-10-31 14:14 ` howarth at nitro dot med dot uc dot edu
                   ` (20 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-10-31  3:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from jvdelisle at gcc dot gnu dot org  2006-10-31 03:18 -------
Geoff,

I am trying to understand what you are saying.

I could extract a segment of the C code that is being used implement here so
that you can see why it is failing.

I think it is because Apple code is returning a value that is long-long when
what is expected is int so we are overwriting a value.  Maybe we need a cast in
there.

Its been a while since I looked at this, but I will do so and try to send an
example, unless I figure out a fix in gfortran first.  :)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (11 preceding siblings ...)
  2006-10-31  3:18 ` jvdelisle at gcc dot gnu dot org
@ 2006-10-31 14:14 ` howarth at nitro dot med dot uc dot edu
  2006-10-31 23:24 ` jvdelisle at gcc dot gnu dot org
                   ` (19 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-10-31 14:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from howarth at nitro dot med dot uc dot edu  2006-10-31 14:14 -------
As I mentioned to Jerry in a private email, his suggestion of...

Index: io/write.c
===================================================================
--- io/write.c  (revision 118229)
+++ io/write.c  (working copy)
@@ -468,6 +468,7 @@ output_float (st_parameter_dt *dtp, cons
   int i;
   sign_t sign;
   double abslog;
+  long tmp_e;

   ft = f->format;
   w = f->u.real.w;
@@ -554,7 +555,8 @@ output_float (st_parameter_dt *dtp, cons
       internal_error (&dtp->common, "printf is broken");

   /* Read the exponent back in.  */
-  e = atoi (&buffer[ndigits + 3]) + 1;
+  tmp_e = atoi (&buffer[ndigits + 3]) + 1;
+  e = (int) tmp-e;

   /* Make sure zero comes out as 0.0e0.  */
   if (value == 0.0)

eliminates the failure in the nan_inf_fmt.f90 testcase on Darwin PPC at all
optimizations as well as -m64. The failure is also suppressed by the simple
placement of...

st_printf("buffer=%s", buffer);

in front of the existing call to atoi().


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (12 preceding siblings ...)
  2006-10-31 14:14 ` howarth at nitro dot med dot uc dot edu
@ 2006-10-31 23:24 ` jvdelisle at gcc dot gnu dot org
  2006-11-01  4:33 ` howarth at nitro dot med dot uc dot edu
                   ` (18 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-10-31 23:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from jvdelisle at gcc dot gnu dot org  2006-10-31 23:24 -------
Jack,

I don't think this is the final fix.  However, after you test that other
possibility I sent you I think I can finalize a patch.  If zero terminating
buffer does not solve the problem, then I think it confirms the real problem
and this is just a hack around.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (13 preceding siblings ...)
  2006-10-31 23:24 ` jvdelisle at gcc dot gnu dot org
@ 2006-11-01  4:33 ` howarth at nitro dot med dot uc dot edu
  2006-11-01  4:48 ` pinskia at gcc dot gnu dot org
                   ` (17 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-11-01  4:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from howarth at nitro dot med dot uc dot edu  2006-11-01 04:33 -------
   I have pinned down the problem. On Darwin PPC with Xcode 2.4, at -O1 or
higher we have problems with the isfinite() macro from libgfortran.h. For the
nan_inf_fmt testcase it should always return 0, but
it doesn't at -O1 or higher. I think we are seeing the same glitch that was
fixed in python for gcc 4.2.
The current macro looks like...

#if !defined(isfinite)
#if !defined(fpclassify)
#define isfinite(x) ((x) - (x) == 0)
#else
#define isfinite(x) (fpclassify(x) != FP_NAN && fpclassify(x) != FP_INFINITE)
#endif /* !defined(fpclassify) */
#endif /* !defined(isfinite)  */

I think it we need to cast both x variables in the macro to unsigned long.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (14 preceding siblings ...)
  2006-11-01  4:33 ` howarth at nitro dot med dot uc dot edu
@ 2006-11-01  4:48 ` pinskia at gcc dot gnu dot org
  2006-11-01  4:56 ` jvdelisle at gcc dot gnu dot org
                   ` (16 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-01  4:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from pinskia at gcc dot gnu dot org  2006-11-01 04:48 -------
(In reply to comment #15)
> I think it we need to cast both x variables in the macro to unsigned long.

No, that would be incorrect.
Jack, can you attach the preprocessed source for write.c?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (15 preceding siblings ...)
  2006-11-01  4:48 ` pinskia at gcc dot gnu dot org
@ 2006-11-01  4:56 ` jvdelisle at gcc dot gnu dot org
  2006-11-01  5:05 ` howarth at nitro dot med dot uc dot edu
                   ` (15 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2006-11-01  4:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #17 from jvdelisle at gcc dot gnu dot org  2006-11-01 04:56 -------
Jack is right about one thing and I should have noticed this.  For that test
case we should never get into output_float where we are segfaulting.  The
handling of nan and inf are handled in the calling function write_float.  So
optimization is breaking something.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (16 preceding siblings ...)
  2006-11-01  4:56 ` jvdelisle at gcc dot gnu dot org
@ 2006-11-01  5:05 ` howarth at nitro dot med dot uc dot edu
  2006-11-01  5:10 ` howarth at nitro dot med dot uc dot edu
                   ` (14 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-11-01  5:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #18 from howarth at nitro dot med dot uc dot edu  2006-11-01 05:05 -------
Andrew,
     I'll post the preprocessed source for write.c shortly. I did a quick test
though moving...

#define isfinite(x) (fpclassify(x) != FP_NAN && fpclassify(x) != FP_INFINITE)

outside of the preprocessor statements so it is declared in libgfortran.h. This
eliminates the
incorrect evaluation of isfinite for the nan_inf_fmt testcase. If I move the
other form...

#define isfinite(x) ((x) - (x) == 0)

outside of the preprocessor statement, it fails as before so that form seems to
have a problem
with optimizations beyond -O0.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (17 preceding siblings ...)
  2006-11-01  5:05 ` howarth at nitro dot med dot uc dot edu
@ 2006-11-01  5:10 ` howarth at nitro dot med dot uc dot edu
  2006-11-01  6:06 ` howarth at nitro dot med dot uc dot edu
                   ` (13 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-11-01  5:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #19 from howarth at nitro dot med dot uc dot edu  2006-11-01 05:10 -------
Created an attachment (id=12524)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12524&action=view)
preprocessed file for libgfortran/io/write.c on Darwin PPC


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (18 preceding siblings ...)
  2006-11-01  5:10 ` howarth at nitro dot med dot uc dot edu
@ 2006-11-01  6:06 ` howarth at nitro dot med dot uc dot edu
  2006-11-01 14:00 ` howarth at nitro dot med dot uc dot edu
                   ` (12 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-11-01  6:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #20 from howarth at nitro dot med dot uc dot edu  2006-11-01 06:06 -------
Created an attachment (id=12525)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12525&action=view)
assembly file from libgfortran/io/write.c on Darwin PPC


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (19 preceding siblings ...)
  2006-11-01  6:06 ` howarth at nitro dot med dot uc dot edu
@ 2006-11-01 14:00 ` howarth at nitro dot med dot uc dot edu
  2006-11-02  2:51 ` howarth at nitro dot med dot uc dot edu
                   ` (11 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-11-01 14:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #21 from howarth at nitro dot med dot uc dot edu  2006-11-01 14:00 -------
This bug is rather confusing. It appears that the actual macros for isfinite on
Darwin PPC look like...

  static __inline__ int __inline_isinff( float __x ) { return
__builtin_fabsf(__x) == __builtin_inff(); }
  static __inline__ int __inline_isinfd( double __x ) { return
__builtin_fabs(__x) == __builtin_inf(); }
  static __inline__ int __inline_isinf( long double __x ) { return
__builtin_fabsl(__x) == __builtin_infl(); }
  static __inline__ int __inline_isfinitef( float __x ) { return __x == __x &&
__builtin_fabsf(__x) != __builtin_inff(); }
  static __inline__ int __inline_isfinited( double __x ) { return __x == __x &&
__builtin_fabs(__x) != __builtin_inf(); }
  static __inline__ int __inline_isfinite( long double __x ) { return __x ==
__x && __builtin_fabsl(__x) != __builtin_infl(); }

I assume that the __builtin_##### entries are actually library function calls
and not macros themselves.
If that is the case, why would the isfinite macros break at higher optimization
levels?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (20 preceding siblings ...)
  2006-11-01 14:00 ` howarth at nitro dot med dot uc dot edu
@ 2006-11-02  2:51 ` howarth at nitro dot med dot uc dot edu
  2006-11-02  3:16 ` howarth at nitro dot med dot uc dot edu
                   ` (10 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-11-02  2:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #22 from howarth at nitro dot med dot uc dot edu  2006-11-02 02:51 -------
A couple other observations. The latest Xcode 2.4.1 release doesn't fix this
problem. Also, shorter version of the testcase...

       implicit none
       character*40 l
       character*12 fmt
       real zero, pos_inf
       zero = 0.0

       pos_inf = 1.0/zero
       fmt = '(F0.0)'
       write(l,fmt=fmt)pos_inf
       end

fails when zero and pos_inf is declared as real, real*4 or real*8 so all forms
of the builtin isfinite macros are broken on Darwin PPC with Xcode 2.4.x. Also,
if I compile write.c with -DHAVE_BROKEN_ISFINITE, the resulting libgfortran
passes the nan_inf_fmt test.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (21 preceding siblings ...)
  2006-11-02  2:51 ` howarth at nitro dot med dot uc dot edu
@ 2006-11-02  3:16 ` howarth at nitro dot med dot uc dot edu
  2006-11-02  3:19 ` howarth at nitro dot med dot uc dot edu
                   ` (9 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-11-02  3:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #23 from howarth at nitro dot med dot uc dot edu  2006-11-02 03:16 -------
One more observation. If I change...

Index: write.c
===================================================================
--- write.c     (revision 118343)
+++ write.c     (working copy)
@@ -893,7 +893,7 @@ write_l (st_parameter_dt *dtp, const fno
 static void
 write_float (st_parameter_dt *dtp, const fnode *f, const char *source, int
len)
 {
-  GFC_REAL_LARGEST n;
+  double n;
   int nb =0, res, save_scale_factor;
   char * p, fin;
   fnode *f2 = NULL;

the crash in nan_int_fmt. So this reinforces what I initially suspected. This
likely another side effect of the broken long double support on Darwin PPC.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (22 preceding siblings ...)
  2006-11-02  3:16 ` howarth at nitro dot med dot uc dot edu
@ 2006-11-02  3:19 ` howarth at nitro dot med dot uc dot edu
  2006-11-05  8:19 ` [Bug target/29302] isfinite returns wrong result at -O1 fxcoudert at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-11-02  3:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #24 from howarth at nitro dot med dot uc dot edu  2006-11-02 03:19 -------
The previous comment should indicate the crash in nan_inf_fmt disappears when n
is a double.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug target/29302] isfinite returns wrong result at -O1
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (23 preceding siblings ...)
  2006-11-02  3:19 ` howarth at nitro dot med dot uc dot edu
@ 2006-11-05  8:19 ` fxcoudert at gcc dot gnu dot org
  2006-11-05  8:20 ` fxcoudert at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-11-05  8:19 UTC (permalink / raw)
  To: gcc-bugs



------- 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|0000-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


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug target/29302] isfinite returns wrong result at -O1
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (24 preceding siblings ...)
  2006-11-05  8:19 ` [Bug target/29302] isfinite returns wrong result at -O1 fxcoudert at gcc dot gnu dot org
@ 2006-11-05  8:20 ` fxcoudert at gcc dot gnu dot org
  2006-11-08  0:07 ` echristo at apple dot com
                   ` (6 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-11-05  8:20 UTC (permalink / raw)
  To: gcc-bugs



-- 

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


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug target/29302] isfinite returns wrong result at -O1
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (25 preceding siblings ...)
  2006-11-05  8:20 ` fxcoudert at gcc dot gnu dot org
@ 2006-11-08  0:07 ` echristo at apple dot com
  2006-12-15 22:42 ` echristo at apple dot com
                   ` (5 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: echristo at apple dot com @ 2006-11-08  0:07 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug target/29302] isfinite returns wrong result at -O1
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (26 preceding siblings ...)
  2006-11-08  0:07 ` echristo at apple dot com
@ 2006-12-15 22:42 ` echristo at apple dot com
  2006-12-19  4:17 ` sayle at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: echristo at apple dot com @ 2006-12-15 22:42 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug target/29302] isfinite returns wrong result at -O1
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (27 preceding siblings ...)
  2006-12-15 22:42 ` echristo at apple dot com
@ 2006-12-19  4:17 ` sayle at gcc dot gnu dot org
  2006-12-19 14:04 ` howarth at nitro dot med dot uc dot edu
                   ` (3 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: sayle at gcc dot gnu dot org @ 2006-12-19  4:17 UTC (permalink / raw)
  To: gcc-bugs



------- 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=gcc&view=rev&rev=120040
Log:
2006-12-18  Roger Sayle  <roger@eyesopen.com>
            Eric Christopher  <echristo@apple.com>

        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


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug target/29302] isfinite returns wrong result at -O1
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (28 preceding siblings ...)
  2006-12-19  4:17 ` sayle at gcc dot gnu dot org
@ 2006-12-19 14:04 ` howarth at nitro dot med dot uc dot edu
  2006-12-19 20:26 ` echristo at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  32 siblings, 0 replies; 34+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-12-19 14:04 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug target/29302] isfinite returns wrong result at -O1
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (29 preceding siblings ...)
  2006-12-19 14:04 ` howarth at nitro dot med dot uc dot edu
@ 2006-12-19 20:26 ` echristo at gcc dot gnu dot org
  2007-01-17 23:30 ` echristo at gcc dot gnu dot org
  2007-01-21  7:00 ` pinskia at gcc dot gnu dot org
  32 siblings, 0 replies; 34+ messages in thread
From: echristo at gcc dot gnu dot org @ 2006-12-19 20:26 UTC (permalink / raw)
  To: gcc-bugs



------- 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=gcc&view=rev&rev=120058
Log:
2006-12-19  Eric Christopher  <echristo@apple.com>

        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


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug target/29302] isfinite returns wrong result at -O1
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (30 preceding siblings ...)
  2006-12-19 20:26 ` echristo at gcc dot gnu dot org
@ 2007-01-17 23:30 ` echristo at gcc dot gnu dot org
  2007-01-21  7:00 ` pinskia at gcc dot gnu dot org
  32 siblings, 0 replies; 34+ messages in thread
From: echristo at gcc dot gnu dot org @ 2007-01-17 23:30 UTC (permalink / raw)
  To: gcc-bugs



------- 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=gcc&view=rev&rev=120884
Log:
2007-01-17  Eric Christopher  <echristo@apple.com>

        Backport from mainline:
        2006-12-18  Roger Sayle  <roger@eyesopen.com>
                    Eric Christopher  <echristo@apple.com>

        PR target/29302
        * real.c (real_maxval): Correctly handle IBM extended double format.

2007-01-17  Eric Christopher  <echristo@apple.com>

        Backport from mainline:
        2006-12-19  Eric Christopher  <echristo@apple.com>

        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


^ permalink raw reply	[flat|nested] 34+ messages in thread

* [Bug target/29302] isfinite returns wrong result at -O1
  2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
                   ` (31 preceding siblings ...)
  2007-01-17 23:30 ` echristo at gcc dot gnu dot org
@ 2007-01-21  7:00 ` pinskia at gcc dot gnu dot org
  32 siblings, 0 replies; 34+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-21  7:00 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2007-01-21  7:00 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-30 20:45 [Bug libfortran/29302] New: nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 howarth at nitro dot med dot uc dot edu
2006-09-30 20:46 ` [Bug libfortran/29302] " howarth at nitro dot med dot uc dot edu
2006-09-30 21:09 ` jvdelisle at gcc dot gnu dot org
2006-09-30 21:36 ` jvdelisle at gcc dot gnu dot org
2006-09-30 21:53 ` jvdelisle at gcc dot gnu dot org
2006-09-30 22:50 ` howarth at nitro dot med dot uc dot edu
2006-10-01  0:40 ` kargl at gcc dot gnu dot org
2006-10-04 23:57 ` geoffk at gcc dot gnu dot org
2006-10-05  2:04 ` howarth at nitro dot med dot uc dot edu
2006-10-06  1:32 ` howarth at nitro dot med dot uc dot edu
2006-10-31  1:02 ` geoffk at gcc dot gnu dot org
2006-10-31  1:03 ` geoffk at gcc dot gnu dot org
2006-10-31  3:18 ` jvdelisle at gcc dot gnu dot org
2006-10-31 14:14 ` howarth at nitro dot med dot uc dot edu
2006-10-31 23:24 ` jvdelisle at gcc dot gnu dot org
2006-11-01  4:33 ` howarth at nitro dot med dot uc dot edu
2006-11-01  4:48 ` pinskia at gcc dot gnu dot org
2006-11-01  4:56 ` jvdelisle at gcc dot gnu dot org
2006-11-01  5:05 ` howarth at nitro dot med dot uc dot edu
2006-11-01  5:10 ` howarth at nitro dot med dot uc dot edu
2006-11-01  6:06 ` howarth at nitro dot med dot uc dot edu
2006-11-01 14:00 ` howarth at nitro dot med dot uc dot edu
2006-11-02  2:51 ` howarth at nitro dot med dot uc dot edu
2006-11-02  3:16 ` howarth at nitro dot med dot uc dot edu
2006-11-02  3:19 ` howarth at nitro dot med dot uc dot edu
2006-11-05  8:19 ` [Bug target/29302] isfinite returns wrong result at -O1 fxcoudert at gcc dot gnu dot org
2006-11-05  8:20 ` fxcoudert at gcc dot gnu dot org
2006-11-08  0:07 ` echristo at apple dot com
2006-12-15 22:42 ` echristo at apple dot com
2006-12-19  4:17 ` sayle at gcc dot gnu dot org
2006-12-19 14:04 ` howarth at nitro dot med dot uc dot edu
2006-12-19 20:26 ` echristo at gcc dot gnu dot org
2007-01-17 23:30 ` echristo at gcc dot gnu dot org
2007-01-21  7:00 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).