mirror of git://gcc.gnu.org/git/gcc.git
[Patch] Add to the libgfortran/newlib bodge to "detect" ftruncate support in ARM/AArch64/SH
* configure.ac: Define HAVE_FTRUNCATE for ARM/AArch64/SH newlib builds. * configure: Regenerate. From-SVN: r227302
This commit is contained in:
parent
b900331607
commit
65543da486
|
|
@ -1,3 +1,9 @@
|
|||
2015-08-28 James Greenhalgh <james.greenhalgh@arm.com>
|
||||
|
||||
* configure.ac: Define HAVE_FTRUNCATE for ARM/AArch64/SH newlib
|
||||
builds.
|
||||
* configure: Regenerate.
|
||||
|
||||
2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
|
||||
|
||||
PR libfortran/66936
|
||||
|
|
|
|||
|
|
@ -16525,6 +16525,15 @@ $as_echo "#define HAVE_STRTOK_R 1" >>confdefs.h
|
|||
$as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
# ARM, AArch64 and SH also provide ftruncate.
|
||||
case "${host}" in
|
||||
arm* | aarch64* | sh*)
|
||||
|
||||
$as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
|
||||
|
||||
;;
|
||||
esac
|
||||
else
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -295,6 +295,13 @@ if test "x${with_newlib}" = "xyes"; then
|
|||
if test x"long_double_math_on_this_cpu" = x"yes"; then
|
||||
AC_DEFINE(HAVE_STRTOLD, 1, [Define if you have strtold.])
|
||||
fi
|
||||
|
||||
# ARM, AArch64 and SH also provide ftruncate.
|
||||
case "${host}" in
|
||||
arm* | aarch64* | sh*)
|
||||
AC_DEFINE(HAVE_FTRUNCATE, 1, [Define if you have ftruncate.])
|
||||
;;
|
||||
esac
|
||||
else
|
||||
AC_CHECK_FUNCS_ONCE(getrusage times mkstemp strtof strtold snprintf \
|
||||
ftruncate chsize chdir getlogin gethostname kill link symlink sleep ttyname \
|
||||
|
|
|
|||
Loading…
Reference in New Issue