diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-04-03 11:12:40 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2007-04-03 11:12:40 +0200 |
commit | f0920e6c645e58c9fa456ff58b3ac0898e835cb2 (patch) | |
tree | b481e68cd487f935394d6e638aa80b70cf61b6da /boehm-gc/configure.ac | |
parent | df3473facbac90274ca6e5d6e6ce3db2152dce35 (diff) | |
download | gcc-f0920e6c645e58c9fa456ff58b3ac0898e835cb2.zip gcc-f0920e6c645e58c9fa456ff58b3ac0898e835cb2.tar.gz gcc-f0920e6c645e58c9fa456ff58b3ac0898e835cb2.tar.bz2 |
closures.c: Include sys/statfs.h.
* src/closures.c: Include sys/statfs.h.
(_GNU_SOURCE): Define on Linux.
(FFI_MMAP_EXEC_SELINUX): Define.
(selinux_enabled): New variable.
(selinux_enabled_check): New function.
(is_selinux_enabled): Define.
(dlmmap): Use it.
* configure.ac (NO_EXECUTE_PERMISSION): Set by default.
* configure: Rebuilt.
From-SVN: r123457
Diffstat (limited to 'boehm-gc/configure.ac')
-rw-r--r-- | boehm-gc/configure.ac | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/boehm-gc/configure.ac b/boehm-gc/configure.ac index afc014d..d4dd16b 100644 --- a/boehm-gc/configure.ac +++ b/boehm-gc/configure.ac @@ -364,11 +364,9 @@ LIBS="$oldLIBS" # Configuration of machine-dependent code # -# We don't set NO_EXECUTE_PERMISSION by default because gcj (and -# anything else that creates trampolines in gc-allocated memory) -# always needs exec permission. The exceptions to this are IA-64 and -# some variations of Power PC, where trampolines don't contain -# executable code. +# Set NO_EXECUTE_PERMISSION by default because gcj already uses +# ffi_closure_{alloc,free} which takes care of allocating trampolines +# in executable memory. # AC_MSG_CHECKING(which machine-dependent code should be used) machdep= @@ -411,10 +409,10 @@ case "$host" in machdep="sparc_mach_dep.lo" ;; ia64-*-*) - AC_DEFINE(NO_EXECUTE_PERMISSION,1,[cause some or all of the heap to not have execute permission]) machdep="mach_dep.lo ia64_save_regs_in_stack.lo" ;; esac +AC_DEFINE(NO_EXECUTE_PERMISSION,1,[cause some or all of the heap to not have execute permission]) if test x"$machdep" = x; then AC_MSG_RESULT($machdep) machdep="mach_dep.lo" |