diff options
author | jgreenhalgh <jgreenhalgh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-28 14:57:57 +0000 |
---|---|---|
committer | jgreenhalgh <jgreenhalgh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-28 14:57:57 +0000 |
commit | 0d9d208841900e36f2251ec2e66d9dcaa458171a (patch) | |
tree | c7aab5b32a3599c41cab94e167c8d9ca4293972c /libgfortran | |
parent | d6a82016f89061bf51a5f18a2c173493c55ace6e (diff) | |
download | gcc-0d9d208841900e36f2251ec2e66d9dcaa458171a.tar.gz |
[Patch] Add to the libgfortran/newlib bodge to "detect" ftruncate support in ARM/AArch64/SH
* configure.ac: Auto-detect newlib function support unless we
know there are issues when configuring for a host.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227301 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/ChangeLog | 6 | ||||
-rwxr-xr-x | libgfortran/configure | 7 | ||||
-rw-r--r-- | libgfortran/configure.ac | 7 |
3 files changed, 18 insertions, 2 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 65e0099a0cd..75be9ad3be2 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2015-08-28 James Greenhalgh <james.greenhalgh@arm.com> + + * configure.ac: Auto-detect newlib function support unless we + know there are issues when configuring for a host. + * configure: Regenerate. + 2015-08-26 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> PR fortran/29600 diff --git a/libgfortran/configure b/libgfortran/configure index d7dad11a161..c236320f07d 100755 --- a/libgfortran/configure +++ b/libgfortran/configure @@ -16474,8 +16474,13 @@ _ACEOF fi +case "${host}--x${with_newlib}" in + mips*--xyes) + hardwire_newlib=1;; +esac + # Check for library functions. -if test "x${with_newlib}" = "xyes"; then +if test "${hardwire_newlib:-0}" -eq 1; then # We are being configured with a cross compiler. AC_REPLACE_FUNCS # may not work correctly, because the compiler may not be able to # link executables. diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac index c1113a0188d..a6a154126c8 100644 --- a/libgfortran/configure.ac +++ b/libgfortran/configure.ac @@ -273,8 +273,13 @@ GCC_HEADER_STDINT(gstdint.h) AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_blocks, struct stat.st_rdev]) +case "${host}--x${with_newlib}" in + mips*--xyes) + hardwire_newlib=1;; +esac + # Check for library functions. -if test "x${with_newlib}" = "xyes"; then +if test "${hardwire_newlib:-0}" -eq 1; then # We are being configured with a cross compiler. AC_REPLACE_FUNCS # may not work correctly, because the compiler may not be able to # link executables. |