]> granicus.if.org Git - clang/commit
[Driver] Support -fsanitize=function on Solaris/x86
authorRainer Orth <ro@gcc.gnu.org>
Tue, 30 Jul 2019 20:04:53 +0000 (20:04 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 30 Jul 2019 20:04:53 +0000 (20:04 +0000)
commit4377c48dca7c79b1607b8ef4f24113d939b08fb0
tree04e5296af7b1a230370c4ab877c824b9baacb515
parent4e685308080baa29e7dcedac269f2d9070086e81
[Driver] Support -fsanitize=function on Solaris/x86

UBSan-Standalone-x86_64 :: TestCases/TypeCheck/Function/function.cpp currently
FAILs on Solaris/x86_64:

  clang-9: error: unsupported option '-fsanitize=function' for target 'x86_64-pc-solaris2.11'

AFAICS, there's nothing more to do then enable that sanitizer in the driver (for x86 only),
which is what this patch does, together with updating another testcase.

Tested on x86_64-pc-solaris2.11.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367351 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Solaris.cpp
test/Driver/fsanitize.c