summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/value-dependent-null-pointer-constant.cpp
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2017-02-24 22:15:24 +0000
committerMichal Gorny <mgorny@gentoo.org>2017-02-24 22:15:24 +0000
commit018d13597acdcfcec0144076a9d546dcdd30803b (patch)
tree6abe36362413e66a9d41422908e0dd1c559d6a1b /clang/test/SemaTemplate/value-dependent-null-pointer-constant.cpp
parent42259cf35e0dbc7c174fa655d6e55e5178ac2087 (diff)
downloadbcm5719-llvm-018d13597acdcfcec0144076a9d546dcdd30803b.tar.gz
bcm5719-llvm-018d13597acdcfcec0144076a9d546dcdd30803b.zip
[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
Diffstat (limited to 'clang/test/SemaTemplate/value-dependent-null-pointer-constant.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud