Revert "[OPENMP] Fix PR38026: Link -latomic when -fopenmp is used."
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Mon, 23 Jul 2018 18:27:09 +0000 (18:27 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Mon, 23 Jul 2018 18:27:09 +0000 (18:27 +0000)
commit3f659e8731464984760493b1011576256ff0f494
tree5862f439afa77cc0bddfae4e7f006cc6aba1f2a3
parent2ea81639bd61c4480ba57535cb142017b07e2633
Revert "[OPENMP] Fix PR38026: Link -latomic when -fopenmp is used."

This reverts commit r336467: libatomic is not available on all Linux
systems and this commit completely breaks OpenMP on them, even if there
are no atomic operations or all of them can be lowered to hardware
instructions.

See http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20180716/234816.html
for post-commit discussion.

llvm-svn: 337722
clang/lib/Driver/ToolChains/Gnu.cpp
clang/test/OpenMP/linking.c