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/39665] [4.5 Regression] Fortran IO using unaligned accesses to read/write doubles.



------- Comment #6 from jb at gcc dot gnu dot org  2009-04-08 20:59 -------
(In reply to comment #5)
> In addition to the alignment problem, check out the case 10 and case 16 entries
> in the convert_real subroutine.  After checking to see that strtold exists,
> they actually go and call strtod instead of strtold.  This is causing some of
> my failures.  Can you roll this change into your patch too.

Huh? At least in my tree (r145761) they call strtold as they should:

#if defined(HAVE_GFC_REAL_10) && defined (HAVE_STRTOLD)
    case 10:
      *((GFC_REAL_10*) dest) = strtold (buffer, NULL);
      break;
#endif

#if defined(HAVE_GFC_REAL_16) && defined (HAVE_STRTOLD)
    case 16:
      *((GFC_REAL_16*) dest) = strtold (buffer, NULL);
      break;
#endif


-- 


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


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