'libgomp.oacc-fortran/{error_,}stop-{1,2,3}.f': initialize before the checkpoint
[gcc.git] / libgomp / configure.tgt
index d66899fbf5f12795670c374823463dc420d505a8..4790a31e394903489a63385afc5c9da4f3c49bfd 100644 (file)
 if test $gcc_cv_have_tls = yes ; then
   case "${target}" in
 
-    *-*-linux*)
-       XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
+    *-*-k*bsd*-gnu*)
+       ;;
+
+    *-*-musl*)
+       ;;
+
+    *-*-linux* | *-*-gnu*)
+       XCFLAGS="${XCFLAGS} -ftls-model=initial-exec -DUSING_INITIAL_EXEC_TLS"
+       ;;
+
+    *-*-rtems*)
+       XCFLAGS="${XCFLAGS} -ftls-model=local-exec"
        ;;
   esac
 fi
@@ -24,13 +34,21 @@ 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"
        ;;
 
+    arm*-*-linux*)
+       config_path="linux posix"
+       ;;
+
     ia64*-*-linux*)
        config_path="linux/ia64 linux posix"
        ;;
@@ -47,11 +65,15 @@ if test $enable_linux_futex = yes; then
        config_path="linux/s390 linux posix"
        ;;
 
+    tile*-*-linux*)
+       config_path="linux/tile linux posix"
+       ;;
+
     # Note that bare i386 is not included here.  We need cmpxchg.
     i[456]86-*-linux*)
        config_path="linux/x86 linux posix"
        case " ${CC} ${CFLAGS} " in
-         *" -m64 "*)
+         *" -m64 "*|*" -mx32 "*)
            ;;
          *)
            if test -z "$with_arch"; then
@@ -67,7 +89,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
        ;;
@@ -97,22 +119,56 @@ fi
 # Other system configury
 case "${target}" in
 
-  *-*-hpux11*)
-       # HPUX v11.x requires -lrt to resolve sem_init in libgomp.la
-       XLDFLAGS="${XLDFLAGS} -lrt"
+  *-*-hpux*)
+       config_path="hpux posix"
+       case "${target}" in
+         *-*-hpux11*)
+            # HPUX v11.x requires -lrt to resolve sem_init in libgomp.la
+            XLDFLAGS="${XLDFLAGS} -lrt"
+            ;;
+       esac
+       case "${target}" in
+         hppa[12]*-*-hpux*)
+           # PA 32 HP-UX needs -frandom-seed for bootstrap compare.
+           XCFLAGS="${XCFLAGS} -frandom-seed=fixed-seed"
+           ;;
+       esac
        ;;
 
   *-*-mingw32*)
        config_path="mingw32 posix"
        ;;
 
-  *-*-solaris2.[56]*)
-       config_path="posix95 posix"
-       XLDFLAGS="${XLDFLAGS} -lposix4"
+  *-*-darwin*)
+       config_path="bsd darwin posix"
        ;;
 
-  *-*-darwin*)
-       config_path="bsd posix"
+  *-*-freebsd*)
+       # Need to link with -lpthread so libgomp.so is self-contained.
+       XLDFLAGS="${XLDFLAGS} -lpthread"
+       ;;
+
+  *-*-aix*)
+       config_path="posix"
+       # Need to link with -lpthread so libgomp.so is self-contained.
+       XLDFLAGS="${XLDFLAGS} -lpthread"
+       # AIX needs -frandom-seed for bootstrap compare.
+       XCFLAGS="${XCFLAGS} -frandom-seed=\$@"
+       ;;
+
+  nvptx*-*-*)
+       config_path="nvptx accel"
+       ;;
+
+  *-*-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
+       ;;
+
+  amdgcn*-*-*)
+       config_path="gcn accel"
        ;;
 
   *)