This is the mail archive of the gcc-patches@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]

[patch, libgfortran] Merge of fortran-dev IO to trunk


I believe the fortran-dev merge is causing many failures on my
IA64 HP-UX platform.  I am getting a bus error at line 154 of
io/read.c in the Fortran library:

(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);

This is because the dest buffer does not have the needed alignment to
hold the double value being written into it here.  I will submit a
PR for this bug.

Steve Ellcey
sje@cup.hp.com


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