[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.

From-SVN: r227301
This commit is contained in:
James Greenhalgh 2015-08-28 14:57:57 +00:00 committed by James Greenhalgh
parent 51fcc51321
commit bd459d0b1d
3 changed files with 18 additions and 2 deletions

View File

@ -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> 2015-08-26 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR fortran/29600 PR fortran/29600

View File

@ -16474,8 +16474,13 @@ _ACEOF
fi fi
case "${host}--x${with_newlib}" in
mips*--xyes)
hardwire_newlib=1;;
esac
# Check for library functions. # 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 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
# may not work correctly, because the compiler may not be able to # may not work correctly, because the compiler may not be able to
# link executables. # link executables.

View File

@ -273,8 +273,13 @@ GCC_HEADER_STDINT(gstdint.h)
AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_blocks, struct stat.st_rdev]) 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. # 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 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
# may not work correctly, because the compiler may not be able to # may not work correctly, because the compiler may not be able to
# link executables. # link executables.