llvm-project/openmp/runtime/test
Michal Gorny 018d13597a [test] Try to link -latomic to provide atomics when available
When using -rtlib=libgcc, the fallback implementation of __atomic_*
builtins is provided via libatomic (included in GCC). However, neither
GCC itself nor clang link libatomic implicitly, and it seems that GCC
upstream expects projects to link it explicitly as necessary.

Since compiler-rt provides __atomic_* builtins directly in the main
library, check if they are provided by the default libraries first.
If they are not, check if -latomic is available to provide them
and add explicit -latomic for tests in this case.

This fixes unresolved __atomic_load() references when running openmp
tests on i386 with libgcc backend.

Differential Revision: https://reviews.llvm.org/D30083

llvm-svn: 296183
2017-02-24 22:15:24 +00:00
..
api Fix memory error in case of reinit using kmp_set_defaults() for lock code. 2017-01-18 07:02:21 +00:00
atomic Remove trailing whitespace from tests 2016-05-17 21:08:52 +00:00
barrier omp_barrier.c test fixed in order to reliably and faster run on any number of processors 2016-01-25 16:52:10 +00:00
critical
env Offer API for setting number of loop dispatch buffers 2016-05-31 19:01:15 +00:00
flush
lock Fix bugs in TAS and futex lock 2016-06-28 19:37:24 +00:00
master Remove trailing whitespace from tests 2016-05-17 21:08:52 +00:00
misc_bugs Appease older gcc compilers for the many-microtask-args.c test 2016-08-30 19:28:58 +00:00
ompt [OMPT] fix task frame information for gomp interface 2016-09-14 13:59:39 +00:00
parallel Remove trailing whitespace from tests 2016-05-17 21:08:52 +00:00
tasking Run-time library part of OpenMP 5.0 task reduction implementation. 2017-02-16 17:49:49 +00:00
threadprivate Remove trailing whitespace from tests 2016-05-17 21:08:52 +00:00
worksharing Enable omp_get_schedule() to return static steal type. 2016-10-07 18:01:35 +00:00
CMakeLists.txt [test] Try to link -latomic to provide atomics when available 2017-02-24 22:15:24 +00:00
lit.cfg [test] Try to link -latomic to provide atomics when available 2017-02-24 22:15:24 +00:00
lit.site.cfg.in [test] Try to link -latomic to provide atomics when available 2017-02-24 22:15:24 +00:00
omp_my_sleep.h
omp_testsuite.h Allow unit testing on Windows 2016-05-23 17:50:32 +00:00