[Driver] Disable -faddrsig on Gentoo by default
authorMichal Gorny <mgorny@gentoo.org>
Sun, 23 Dec 2018 15:07:26 +0000 (15:07 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Sun, 23 Dec 2018 15:07:26 +0000 (15:07 +0000)
commitdae01c352b98022dddbf1aec8a25c919d3389d9e
tree24d78759387745bbd4b1df6d0ed16a4c5c665043
parentf241228a0201cc6eb623370b214cc7921daf67b5
[Driver] Disable -faddrsig on Gentoo by default

Gentoo supports combining clang toolchain with GNU binutils, and many
users actually do that.  As -faddrsig is not supported by GNU strip,
this results in a lot of warnings.  Disable it by default and let users
enable it explicitly if they want it; with the intent of reevaluating
when the underlying feature becomes standarized.

See also: https://bugs.gentoo.org/667854

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

llvm-svn: 350028
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/addrsig.c
clang/test/lit.cfg.py