]> gcc.gnu.org Git - gcc.git/commitdiff
[Patch] Add to the libgfortran/newlib bodge to "detect" ftruncate support in ARM...
authorJames Greenhalgh <james.greenhalgh@arm.com>
Fri, 28 Aug 2015 14:57:57 +0000 (14:57 +0000)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Fri, 28 Aug 2015 14:57:57 +0000 (14:57 +0000)
* configure.ac: Auto-detect newlib function support unless we
know there are issues when configuring for a host.
* configure: Regenerate.

From-SVN: r227301

libgfortran/ChangeLog
libgfortran/configure
libgfortran/configure.ac

index 65e0099a0cd4d2bee4e889dab522a65360b6cc76..75be9ad3be2f823615da3ef1b02ecc5ac68dd2f3 100644 (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>
 
        PR fortran/29600
index d7dad11a161444c08182f20eab1395badeb46d8a..c236320f07d96dd42413cecfa15f14f7d70ca0e7 100755 (executable)
@@ -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.
index c1113a0188db4e613e8d647a4fc33a2aaa35d0be..a6a154126c8be0386072577a197a62af879050bd 100644 (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])
 
+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.
This page took 0.082722 seconds and 5 git commands to generate.