switch clang to -fno-common by default
authornaddy <naddy@openbsd.org>
Sat, 6 Feb 2021 21:40:59 +0000 (21:40 +0000)
committernaddy <naddy@openbsd.org>
Sat, 6 Feb 2021 21:40:59 +0000 (21:40 +0000)
commit87a29e4d936af7487433ca562688be21bb3a65cb
tree55043765107a0af8d29567989a9c34203dcc12e4
parentd1d999610aa4f5e16fd0872086b30a963fac84fe
switch clang to -fno-common by default

Common variables will be flagged as errors by default.  This can
be overridden with -fcommon.

Cherry-pick this change that will be part of LLVM11.  We bring it
forward so we can finish fixing the fallout in the ports tree.

ok deraadt@ sthen@ mglocker@
gnu/llvm/clang/include/clang/Driver/Options.td
gnu/llvm/clang/lib/Driver/ToolChains/Clang.cpp
gnu/llvm/clang/lib/Frontend/CompilerInvocation.cpp