44a7d18d95
* configure.ac (noconfigdirs): Don't add "target-libgomp" for target nvptx*-*-*. * configure: Regenerate. libgomp/ * config/nvptx/affinity.c: New file. * config/nvptx/alloc.c: Likewise. * config/nvptx/bar.c: Likewise. * config/nvptx/barrier.c: Likewise. * config/nvptx/critical.c: Likewise. * config/nvptx/env.c: Likewise. * config/nvptx/error.c: Likewise. * config/nvptx/fortran.c: Likewise. * config/nvptx/iter.c: Likewise. * config/nvptx/iter_ull.c: Likewise. * config/nvptx/libgomp-plugin.c: Likewise. * config/nvptx/lock.c: Likewise. * config/nvptx/loop.c: Likewise. * config/nvptx/loop_ull.c: Likewise. * config/nvptx/mutex.c: Likewise. * config/nvptx/oacc-async.c: Likewise. * config/nvptx/oacc-cuda.c: Likewise. * config/nvptx/oacc-host.c: Likewise. * config/nvptx/oacc-init.c: Likewise. * config/nvptx/oacc-mem.c: Likewise. * config/nvptx/oacc-parallel.c: Likewise. * config/nvptx/oacc-plugin.c: Likewise. * config/nvptx/omp-lock.h: Likewise. * config/nvptx/ordered.c: Likewise. * config/nvptx/parallel.c: Likewise. * config/nvptx/proc.c: Likewise. * config/nvptx/ptrlock.c: Likewise. * config/nvptx/sections.c: Likewise. * config/nvptx/sem.c: Likewise. * config/nvptx/single.c: Likewise. * config/nvptx/splay-tree.c: Likewise. * config/nvptx/target.c: Likewise. * config/nvptx/task.c: Likewise. * config/nvptx/team.c: Likewise. * config/nvptx/time.c: Likewise. * config/nvptx/work.c: Likewise. * configure.ac: Don't probe pthreads support for host nvptx*-*-*. * configure: Regenerate. * configure.tgt (config_path): Set to "nvptx" for target nvptx*-*-*. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r226760
162 lines
3.5 KiB
Plaintext
162 lines
3.5 KiB
Plaintext
# This is the target specific configuration file. This is invoked by the
|
|
# autoconf generated configure script. Putting it in a separate shell file
|
|
# lets us skip running autoconf when modifying target specific information.
|
|
|
|
# This file switches on the shell variable ${target}, and sets the
|
|
# following shell variables:
|
|
# config_path An ordered list of directories to search for
|
|
# sources and headers. This is relative to the
|
|
# config subdirectory of the source tree.
|
|
# XCFLAGS Add extra compile flags to use.
|
|
# XLDFLAGS Add extra link flags to use.
|
|
|
|
# Optimize TLS usage by avoiding the overhead of dynamic allocation.
|
|
if test $gcc_cv_have_tls = yes ; then
|
|
case "${target}" in
|
|
|
|
*-*-k*bsd*-gnu*)
|
|
;;
|
|
|
|
*-*-linux* | *-*-gnu*)
|
|
XCFLAGS="${XCFLAGS} -ftls-model=initial-exec"
|
|
;;
|
|
|
|
*-*-rtems*)
|
|
XCFLAGS="${XCFLAGS} -ftls-model=local-exec"
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
# Since we require POSIX threads, assume a POSIX system by default.
|
|
config_path="posix"
|
|
|
|
# Check for futex enabled all at once.
|
|
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"
|
|
;;
|
|
|
|
mips*-*-linux*)
|
|
config_path="linux/mips linux posix"
|
|
;;
|
|
|
|
powerpc*-*-linux*)
|
|
config_path="linux/powerpc linux posix"
|
|
;;
|
|
|
|
s390*-*-linux*)
|
|
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 "*|*" -mx32 "*)
|
|
;;
|
|
*)
|
|
if test -z "$with_arch"; then
|
|
XCFLAGS="${XCFLAGS} -march=i486 -mtune=${target_cpu}"
|
|
fi
|
|
esac
|
|
;;
|
|
|
|
# Similar jiggery-pokery for x86_64 multilibs, except here we
|
|
# can't rely on the --with-arch configure option, since that
|
|
# applies to the 64-bit side.
|
|
x86_64-*-linux*)
|
|
config_path="linux/x86 linux posix"
|
|
case " ${CC} ${CFLAGS} " in
|
|
*" -m32 "*)
|
|
XCFLAGS="${XCFLAGS} -march=i486 -mtune=generic"
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
# Note that sparcv7 and sparcv8 is not included here. We need cas.
|
|
sparcv9-*-linux* | sparc64-*-linux*)
|
|
echo "int i;" > conftestx.c
|
|
if ${CC} ${CFLAGS} -c -o conftestx.o conftestx.c > /dev/null 2>&1; then
|
|
config_path="linux/sparc linux posix"
|
|
case "`/usr/bin/file conftestx.o`" in
|
|
*32-bit*)
|
|
case " ${CC} ${CFLAGS}" in
|
|
*" -mcpu=ultrasparc"*)
|
|
;;
|
|
*)
|
|
XCFLAGS="${XCFLAGS} -mcpu=v9"
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
fi
|
|
rm -f conftestx.c conftestx.o
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
# Other system configury
|
|
case "${target}" in
|
|
|
|
*-*-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"
|
|
;;
|
|
|
|
*-*-darwin*)
|
|
config_path="bsd darwin 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"
|
|
;;
|
|
|
|
nvptx*-*-*)
|
|
config_path="nvptx"
|
|
;;
|
|
|
|
*)
|
|
;;
|
|
|
|
esac
|