diff options
author | davek <davek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-03-07 22:25:20 +0000 |
---|---|---|
committer | davek <davek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-03-07 22:25:20 +0000 |
commit | db9978f5f3db83eb33617a151fe440fa6a4baa6e (patch) | |
tree | 887fb8b7efcbbd0dd62dc304e53ba85fb931383a /libffi | |
parent | 28d3effc665ce1967efc443b8f058bbbe3075acb (diff) | |
download | linaro-gcc-db9978f5f3db83eb33617a151fe440fa6a4baa6e.tar.gz linaro-gcc-db9978f5f3db83eb33617a151fe440fa6a4baa6e.tar.bz2 linaro-gcc-db9978f5f3db83eb33617a151fe440fa6a4baa6e.zip |
* src/closures.c (is_emutramp_enabled [!FFI_MMAP_EXEC_EMUTRAMP_PAX]):
Move default definition outside enclosing #if scope.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196527 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi')
-rw-r--r-- | libffi/ChangeLog | 5 | ||||
-rw-r--r-- | libffi/src/closures.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog index ab2aee6a9a0..57cf3567213 100644 --- a/libffi/ChangeLog +++ b/libffi/ChangeLog @@ -1,3 +1,8 @@ +2013-03-07 Dave Korn <dave.korn.cygwin@gmail.com> + + * src/closures.c (is_emutramp_enabled [!FFI_MMAP_EXEC_EMUTRAMP_PAX]): + Move default definition outside enclosing #if scope. + 2013-02-06 Andreas Tobler <andreast@fgznet.ch> * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix case where diff --git a/libffi/src/closures.c b/libffi/src/closures.c index fecbc4ae2c9..6298d6f0c4d 100644 --- a/libffi/src/closures.c +++ b/libffi/src/closures.c @@ -189,8 +189,6 @@ emutramp_enabled_check (void) #define is_emutramp_enabled() (emutramp_enabled >= 0 ? emutramp_enabled \ : (emutramp_enabled = emutramp_enabled_check ())) -#else -#define is_emutramp_enabled() 0 #endif /* FFI_MMAP_EXEC_EMUTRAMP_PAX */ #elif defined (__CYGWIN__) || defined(__INTERIX) @@ -202,6 +200,10 @@ emutramp_enabled_check (void) #endif /* !defined(X86_WIN32) && !defined(X86_WIN64) */ +#ifndef FFI_MMAP_EXEC_EMUTRAMP_PAX +#define is_emutramp_enabled() 0 +#endif /* FFI_MMAP_EXEC_EMUTRAMP_PAX */ + /* Declare all functions defined in dlmalloc.c as static. */ static void *dlmalloc(size_t); static void dlfree(void*); |