This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: unresolved reference to _gfortran_pow_r8_i4


Anthony Stone wrote:
I have a big program, compiled with gfortran/gcc-4.4.1 (20090515), that uses the lapack/ATLAS library, also compiled with gfortran/gcc-4.4.1. I get unresolved references to _gfortran_pow_r8_i4 from lapack library routines. libgfortran.a contains _gfortran_pow_r8_i8 and _gfortran_pow_r8_i16 but not _gfortran_pow_r8_i4. Is this a bug, or am I doing something wrong?

You're doing something wrong, probably lapack was compiled with an older version of gfortran. The _gfortran_pow_r*_i4 symbols were removed from the library as of the 4.3 relase, IIRC. Since 4.3 gfortran instead generates calls to powi, powil, powif which are already available in the required GCC support library (libgcc). The benefit of this change is 1) bloat reduction 2) the middle-end of the compiler is aware of these functions and can potentially optimize usage of them better.


--
Janne Blomqvist


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