diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2015-08-24 18:48:28 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2015-08-24 18:48:28 +0000 |
commit | 1b533361dae91d9a13679b8377111b91cf554217 (patch) | |
tree | 159bff6d860df6485a0d435933da7932aef5121a | |
parent | 74457d003ed7f9577931ae6d7adaa906fc0a0473 (diff) | |
download | gcc-1b533361dae91d9a13679b8377111b91cf554217.zip gcc-1b533361dae91d9a13679b8377111b91cf554217.tar.gz gcc-1b533361dae91d9a13679b8377111b91cf554217.tar.bz2 |
configure.ac: Set have_mmap to no on spu-*-* targets.
* configure.ac: Set have_mmap to no on spu-*-* targets.
* configure: Regenerate.
From-SVN: r227145
-rw-r--r-- | libbacktrace/ChangeLog | 5 | ||||
-rwxr-xr-x | libbacktrace/configure | 18 | ||||
-rw-r--r-- | libbacktrace/configure.ac | 6 |
3 files changed, 29 insertions, 0 deletions
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index 5862906..c31c651 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,8 @@ +2015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> + + * configure.ac: Set have_mmap to no on spu-*-* targets. + * configure: Regenerate. + 2015-08-13 Ian Lance Taylor <iant@google.com> * dwarf.c (read_function_entry): Add vec_inlined parameter. diff --git a/libbacktrace/configure b/libbacktrace/configure index 19418c9..2686599 100755 --- a/libbacktrace/configure +++ b/libbacktrace/configure @@ -11570,6 +11570,12 @@ $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; } fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + WARN_FLAGS= save_CFLAGS="$CFLAGS" for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \ @@ -11616,6 +11622,12 @@ $as_echo "$ac_res" >&6; } fi done CFLAGS="$save_CFLAGS" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + if test -n "${with_target_subdir}"; then @@ -12292,6 +12304,12 @@ else # When built as a GCC target library, we can't do a link test. We # simply assume that if we have mman.h, we have mmap. have_mmap=yes + case "${host}" in + spu-*-*) + # The SPU does not have mmap, but it has a sys/mman.h header file + # containing "mmap_eaddr" and the mmap flags, confusing the test. + have_mmap=no ;; + esac else ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" if test "x$ac_cv_func_mmap" = x""yes; then : diff --git a/libbacktrace/configure.ac b/libbacktrace/configure.ac index 2e5b9c7..a0e487b 100644 --- a/libbacktrace/configure.ac +++ b/libbacktrace/configure.ac @@ -273,6 +273,12 @@ else # When built as a GCC target library, we can't do a link test. We # simply assume that if we have mman.h, we have mmap. have_mmap=yes + case "${host}" in + spu-*-*) + # The SPU does not have mmap, but it has a sys/mman.h header file + # containing "mmap_eaddr" and the mmap flags, confusing the test. + have_mmap=no ;; + esac else AC_CHECK_FUNC(mmap, [have_mmap=yes], [have_mmap=no]) fi |