This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]