public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/39665]  New: Fortran IO using unaligned accesses to read/write doubles.
@ 2009-04-06 16:19 sje at cup dot hp dot com
  2009-04-06 16:20 ` [Bug libfortran/39665] " sje at cup dot hp dot com
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: sje at cup dot hp dot com @ 2009-04-06 16:19 UTC (permalink / raw)
  To: gcc-bugs

Many fortran tests, like libgfortran.dg/arrayio_9.f90 and
libgfortran.dg/arrayio_10.f90 are failing on IA64 because the IO library is
reading and writing double values to unaligned addresses.

In gdb I see:

(gdb) r
Starting program: /proj/opensrc/nightly/build-ia64-hp-hpux11.23-trunk/x

Program received signal SIGBUS, Bus error
  si_code: 1 - BUS_ADRALN - Invalid address alignment.
0x9fffffffbd717700:0 in *_gfortrani_convert_real (dtp=0x9fffffffffffef80,
    dest=0x9ffffffffffff07c, buffer=0x6000000000021de0 "1", length=8)
    at /proj/opensrc/nightly/src/trunk/libgfortran/io/read.c:154
154           *((GFC_REAL_8*) dest) = strtod (buffer, NULL);

The dest address is not 8 byte aligned which is what is required for writing a
double out to memory on IA64 due to its strong alignment requirement.


-- 
           Summary: Fortran IO using unaligned accesses to read/write
                    doubles.
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sje at cup dot hp dot com
GCC target triplet: ia64-hp-hpux11.23


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


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

end of thread, other threads:[~2009-05-27  1:23 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-06 16:19 [Bug libfortran/39665] New: Fortran IO using unaligned accesses to read/write doubles sje at cup dot hp dot com
2009-04-06 16:20 ` [Bug libfortran/39665] " sje at cup dot hp dot com
2009-04-06 18:17 ` domob at gcc dot gnu dot org
2009-04-08 16:22 ` danglin at gcc dot gnu dot org
2009-04-08 17:00 ` [Bug libfortran/39665] [4.5 Regression] " burnus at gcc dot gnu dot org
2009-04-08 17:11 ` jb at gcc dot gnu dot org
2009-04-08 20:16 ` sje at cup dot hp dot com
2009-04-08 20:59 ` jb at gcc dot gnu dot org
2009-04-08 21:04 ` sje at cup dot hp dot com
2009-04-08 22:36 ` jb at gcc dot gnu dot org
2009-04-08 22:41 ` pinskia at gcc dot gnu dot org
2009-04-09 15:01 ` sje at cup dot hp dot com
2009-04-09 17:45 ` jb at gcc dot gnu dot org
2009-04-10  7:23 ` jb at gcc dot gnu dot org
2009-04-13 16:55 ` jb at gcc dot gnu dot org
2009-05-27  1:23 ` jvdelisle 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).