This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
- From: "howarth at nitro dot med dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Oct 2006 02:03:53 -0000
- Subject: [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4
- References: <bug-29302-11113@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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