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

Re: [patch, libgfortran, configure] Cross-compile support for libgfortran

On 4 June 2013 20:49, Steve Ellcey <> wrote:
> This patch allows me to build libgfortran for a cross-compiling toolchain
> using newlib.  Currently the checks done by AC_CHECK_FUNCS_ONCE fail with
> my toolchain because the compile/link fails due to the configure script not
> using the needed linker script in the link command.  The check for with_newlib
> is how libjava deals with the problem and it fixes my build problems.
> My only concern is defining HAVE_STRTOLD, strtold exists in my newlib but
> I am not sure if that is true for all newlib builds.  I didn't see any
> flags that I could easily use to check for long double support in the
> libgfortran, but it seems to assume that the type exists.
> OK to checkin?

This patch breaks systems where long double is wider than double.  The
newlib implementation provides strtold for systems where double is as
wide as long double but not on systems where long double is wider.

I don;t see any issues with AC_CHECK_FUNC_ONCE when cross configuring
aarch64 toolchains but I would have thought that fixing the link test
issue you encountered would be preferable to hard coding assumptions
in the configure script?


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