* c-c++-common/attr-simd-3.c: Requires pthreads.
[gcc.git] / libgomp / configure.tgt
index 6fd55a232dc32afc379d3fb7d509a8d638eb3835..77e73f01f1abda2b08b722ff4d926080d233a799 100644 (file)
 if test $gcc_cv_have_tls = yes ; then
   case "${target}" in
 
-    *-*-linux*)
+    *-*-k*bsd*-gnu*)
+       ;;
+
+    *-*-linux* | *-*-gnu*)
        XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
        ;;
+
+    *-*-rtems*)
+       XCFLAGS="${XCFLAGS} -ftls-model=local-exec"
+       ;;
   esac
 fi
 
@@ -24,9 +31,13 @@ fi
 config_path="posix"
 
 # Check for futex enabled all at once.
-if test $enable_linux_futex = yes; then
+if test x$enable_linux_futex = xyes; then
   case "${target}" in
 
+    aarch64*-*-linux*)
+       config_path="linux posix"
+       ;;
+
     alpha*-*-linux*)
        config_path="linux/alpha linux posix"
        ;;
@@ -59,7 +70,7 @@ if test $enable_linux_futex = yes; then
     i[456]86-*-linux*)
        config_path="linux/x86 linux posix"
        case " ${CC} ${CFLAGS} " in
-         *" -m64 "*)
+         *" -m64 "*|*" -mx32 "*)
            ;;
          *)
            if test -z "$with_arch"; then
@@ -75,7 +86,7 @@ if test $enable_linux_futex = yes; then
        config_path="linux/x86 linux posix"
        case " ${CC} ${CFLAGS} " in
          *" -m32 "*)
-           XCFLAGS="${XCFLAGS} -march=i486 -mtune=i686"
+           XCFLAGS="${XCFLAGS} -march=i486 -mtune=generic"
            ;;
        esac
        ;;
@@ -106,6 +117,7 @@ fi
 case "${target}" in
 
   *-*-hpux*)
+       config_path="hpux posix"
        case "${target}" in
          *-*-hpux11*)
             # HPUX v11.x requires -lrt to resolve sem_init in libgomp.la
@@ -125,7 +137,7 @@ case "${target}" in
        ;;
 
   *-*-darwin*)
-       config_path="bsd posix"
+       config_path="bsd darwin posix"
        ;;
 
   *-*-freebsd*)
@@ -133,10 +145,23 @@ case "${target}" in
        XLDFLAGS="${XLDFLAGS} -lpthread"
        ;;
 
-  mips-sgi-irix6*)
+  *-*-aix*)
+       config_path="posix"
        # Need to link with -lpthread so libgomp.so is self-contained.
        XLDFLAGS="${XLDFLAGS} -lpthread"
        ;;
+
+  nvptx*-*-*)
+       config_path="nvptx"
+       ;;
+
+  *-*-rtems*)
+       # Use self-contained synchronization objects if provided by Newlib
+       if test "x$ac_cv_type_struct__Mutex_Control" = xyes ; then
+           config_path="rtems posix"
+       fi
+       ;;
+
   *)
        ;;