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

Daniel Kraft d@domob.eu
Mon Apr 6 16:28:00 GMT 2009


Steve Ellcey wrote:
> 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.

Hi Steve,

thanks for testing this!  That was caused by my floating-point reading 
patch, where I changed this to not use a memcpy; I thought there were 
already other points in the library that use this casting...  I will try 
to locate them, so we can see if those fail, too, and need a fix.

Daniel

-- 
Done:  Arc-Bar-Cav-Ran-Rog-Sam-Tou-Val-Wiz
To go: Hea-Kni-Mon-Pri



More information about the Gcc-patches mailing list