diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-03-29 21:05:07 +0000 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-06-02 23:44:55 +0300 |
commit | beefe888321d4d12f464451f73f9ae426cee34eb (patch) | |
tree | 212ab50e3795423e77d5d1c549910acc7aa98cc5 | |
parent | ba5897b4ae6a82149de0e84cb0c708cd005225b6 (diff) | |
download | bdwgc-gcc_boehmgc.tar.gz |
boehm-gc: Use mmap instead of brkgcc_boehmgc
boehm-gc/
* configure.host: Set gc_use_mmap on *-kfreebsd-gnu* and *-gnu*.
* include/private/gcconfig.h [HURD && USE_MMAP]: Define
USE_MMAP_ANON.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234534 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | configure.host | 2 | ||||
-rw-r--r-- | include/private/gcconfig.h | 2 |
3 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2016-03-29 Samuel Thibault <samuel.thibault@ens-lyon.org> + + * configure.host: Set gc_use_mmap on *-kfreebsd-gnu* and *-gnu*. + * include/private/gcconfig.h [HURD && USE_MMAP]: Define + USE_MMAP_ANON. + 2016-03-16 Andreas Schwab <schwab@suse.de> * include/private/gcconfig.h [AARCH64] (ALIGNMENT, CPP_WORDSZ): diff --git a/configure.host b/configure.host index 97f4dacb..229a0387 100644 --- a/configure.host +++ b/configure.host @@ -41,7 +41,7 @@ else fi case "${host}" in - *-linux*) + *-linux*|*-kfreebsd-gnu*|*-gnu*) gc_use_mmap=yes ;; esac diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index aa81f15b..44b9d7d8 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -2137,7 +2137,7 @@ # endif # endif -#if defined(LINUX) && defined(USE_MMAP) +#if (defined(LINUX) || defined(HURD)) && defined(USE_MMAP) /* The kernel may do a somewhat better job merging mappings etc. */ /* with anonymous mappings. */ # define USE_MMAP_ANON |