diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2013-03-07 10:41:25 +0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2013-03-07 21:41:27 +0800 |
commit | a38e7b29885b25278b1d356b2efd21622376695d (patch) | |
tree | b3d8e13f5686719c81ea42f318420352686c7cd1 /gcc-4.4.3/libgomp/configure | |
parent | 1ed1c0506a4b26ebffb0e52e068c25cef2f4dfad (diff) | |
download | toolchain_gcc-a38e7b29885b25278b1d356b2efd21622376695d.tar.gz toolchain_gcc-a38e7b29885b25278b1d356b2efd21622376695d.tar.bz2 toolchain_gcc-a38e7b29885b25278b1d356b2efd21622376695d.zip |
Fix GCC 4.4.3/4.6/4.7 openmp support to use libgomp/config/linux
Android does support SYS_gettid and SYS_futex which allows
libgomp to use libgomp/config/linux/* instead of
libgomp/config/posix and enables more features such as
thread affinity.
For GCC4.4.3/ARM, the missing linux/futex.h is copied from
GCC 4.6
Also guard the new sc_nprocessors_actu with __ANDROID__,
and fix return value in proc.c
Change-Id: Ib22496075ac5e41c5f44f5160d1b34a5609c168b
Diffstat (limited to 'gcc-4.4.3/libgomp/configure')
-rwxr-xr-x | gcc-4.4.3/libgomp/configure | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.4.3/libgomp/configure b/gcc-4.4.3/libgomp/configure index b5cfeb9ef..29645d13a 100755 --- a/gcc-4.4.3/libgomp/configure +++ b/gcc-4.4.3/libgomp/configure @@ -17617,6 +17617,12 @@ cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <sys/syscall.h> int lk; +#if !defined(SYS_gettid) +#define SYS_gettid __NR_gettid +#endif +#if !defined(SYS_futex) +#define SYS_futex __NR_futex +#endif int main () { @@ -17726,6 +17732,12 @@ cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <sys/syscall.h> int lk; +#if !defined(SYS_gettid) +#define SYS_gettid __NR_gettid +#endif +#if !defined(SYS_futex) +#define SYS_futex __NR_futex +#endif int main () { |