aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/JSON.cpp
diff options
context:
space:
mode:
authorRainer Orth <ro@gcc.gnu.org>2020-09-24 11:58:25 +0200
committerRainer Orth <ro@gcc.gnu.org>2020-09-24 11:58:25 +0200
commit15c9af5618c8c4a810994df53543af9060086a8e (patch)
treed07e8650330ccb8981edcd315605fe3febed79b8 /llvm/lib/Support/JSON.cpp
parent00e05b12c76c396688cd8d4caac09a2e96851fd9 (diff)
downloadllvm-15c9af5618c8c4a810994df53543af9060086a8e.zip
llvm-15c9af5618c8c4a810994df53543af9060086a8e.tar.gz
llvm-15c9af5618c8c4a810994df53543af9060086a8e.tar.bz2
[asan][test] Disable malloc-no-intercept.c on Solaris
`TestCases/malloc-no-intercept.c` `FAIL`s on Solaris/x86, e.g. with `-Dtestfunc=mallinfo`: /usr/bin/ld: /tmp/malloc-no-intercept-586529.o: in function `main': /vol/llvm/src/llvm-project/dist/compiler-rt/test/asan/TestCases/malloc-no-intercept.c:30: undefined reference to `nonexistent_function' clang-12: error: linker command failed with exit code 1 (use -v to see invocation) This is not surprising, actually: - `mallinfo` and `mallopt` only exist in `libmalloc` - `pvalloc` doesn't exist all all - `cfree` does exist in `libc`, but isn't declared in any public header and the OpenSolaris sources reveal that it has a different signature than on Linux - only `memalign` is a public interface To avoid this, this patch disables the interceptors for all but `meminfo`. Additionally, the test is marked `UNSUPPORTED` on Solaris since the `memalign` and `cfree` variants **do** link on Solaris. Tested on `amd64-pc-solaris2.11`. Differential Revision: https://reviews.llvm.org/D87898
Diffstat (limited to 'llvm/lib/Support/JSON.cpp')
0 files changed, 0 insertions, 0 deletions