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.6/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.6/libgomp/configure')
| -rwxr-xr-x | gcc-4.6/libgomp/configure | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.6/libgomp/configure b/gcc-4.6/libgomp/configure index 623b1a9a5..fe3c10e09 100755 --- a/gcc-4.6/libgomp/configure +++ b/gcc-4.6/libgomp/configure @@ -15157,6 +15157,12 @@ case "$target" in /* 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 () { @@ -15209,6 +15215,12 @@ rm -f core conftest.err conftest.$ac_objext \ /* 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 () { |
