diff options
author | Kamil Rytarowski <n54@gmx.com> | 2018-12-22 06:56:19 +0000 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2018-12-22 06:56:19 +0000 |
commit | 2835fe7cf7dc2add5f2c93f4f6470b0f07863c28 (patch) | |
tree | aec916c9c37ad4b6fb958f0575afe642c2cb0033 /test/profile | |
parent | 4883225a7b173e5bd1e490926c4d2f0bf45b0065 (diff) | |
download | compiler-rt-2835fe7cf7dc2add5f2c93f4f6470b0f07863c28.tar.gz |
Add support for LLVM profile for NetBSD
Summary:
NetBSD uses typical UNIX interfaces.
All tests pass except instrprof-dlopen-dlclose-gcov.test, as there
is not supported semantics of atexit(3) in dlopen(3)ed+dlclose(3)d
DSO.
NetBSD also ships an older version of LLVM profile (ABI v.2 predating
ABI v.4 in upstream version) inside libc. That copy has been manually
removed during the porting and testing process of the upstream version
to NetBSD. Otherwise there were conflicts between them two.
Reviewers: joerg, vitalybuka, vsk
Subscribers: srhines, fedor.sergeev, llvm-commits, mgorny, #sanitizers
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D55997
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@349994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/profile')
-rw-r--r-- | test/profile/instrprof-dlopen-dlclose-gcov.test | 3 | ||||
-rw-r--r-- | test/profile/lit.cfg | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/test/profile/instrprof-dlopen-dlclose-gcov.test b/test/profile/instrprof-dlopen-dlclose-gcov.test index 8b1b2e294..36b5dbd26 100644 --- a/test/profile/instrprof-dlopen-dlclose-gcov.test +++ b/test/profile/instrprof-dlopen-dlclose-gcov.test @@ -1,3 +1,6 @@ +# atexit(3) not supported in dlopen(3)ed+dlclose(3)d DSO +XFAIL: netbsd + RUN: mkdir -p %t.d RUN: cd %t.d diff --git a/test/profile/lit.cfg b/test/profile/lit.cfg index 1cd250967..7449650a6 100644 --- a/test/profile/lit.cfg +++ b/test/profile/lit.cfg @@ -67,7 +67,7 @@ config.substitutions.append( ("%clangxx_profuse=", build_invocation(clang_cxxfla config.substitutions.append( ("%clang_lto_profgen=", build_invocation(clang_cflags, True) + " -fprofile-instr-generate=") ) -if config.host_os not in ['Darwin', 'FreeBSD', 'Linux', 'SunOS']: +if config.host_os not in ['Darwin', 'FreeBSD', 'Linux', 'NetBSD', 'SunOS']: config.unsupported = True if config.target_arch in ['armv7l']: |