'libgomp.oacc-fortran/{error_,}stop-{1,2,3}.f': initialize before the checkpoint
[gcc.git] / libgomp / configure.tgt
index ebd9be97d08f58211cc6c575eaa5f0e54c486e1f..4790a31e394903489a63385afc5c9da4f3c49bfd 100644 (file)
@@ -17,8 +17,15 @@ if test $gcc_cv_have_tls = yes ; then
     *-*-k*bsd*-gnu*)
        ;;
 
+    *-*-musl*)
+       ;;
+
     *-*-linux* | *-*-gnu*)
-       XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
+       XCFLAGS="${XCFLAGS} -ftls-model=initial-exec -DUSING_INITIAL_EXEC_TLS"
+       ;;
+
+    *-*-rtems*)
+       XCFLAGS="${XCFLAGS} -ftls-model=local-exec"
        ;;
   esac
 fi
@@ -27,7 +34,7 @@ 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*)
@@ -113,6 +120,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
@@ -132,7 +140,7 @@ case "${target}" in
        ;;
 
   *-*-darwin*)
-       config_path="bsd posix"
+       config_path="bsd darwin posix"
        ;;
 
   *-*-freebsd*)
@@ -140,6 +148,29 @@ case "${target}" in
        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"
+       ;;
+
   *)
        ;;