Commit 81c87471 by Jakub Jelinek Committed by Jakub Jelinek

re PR sanitizer/60055 (Invalid binding of __tsan_default_options)

	PR sanitizer/60055
	* tsan/tsan_flags.cc (__tsan_default_options): Add
	SANITIZER_INTERFACE_ATTRIBUTE.  Backport from upstream r200747.
	* tsan/tsan_rtl.cc (__tsan::OnFinalize): Likewise.

From-SVN: r207459
parent 25c90aae
2014-02-04 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/60055
* tsan/tsan_flags.cc (__tsan_default_options): Add
SANITIZER_INTERFACE_ATTRIBUTE. Backport from upstream r200747.
* tsan/tsan_rtl.cc (__tsan::OnFinalize): Likewise.
PR sanitizer/60038
* sanitizer_common/sanitizer_linux_libcdep.cc: Include
sanitizer_atomic.h and unistd.h.
......
......@@ -29,7 +29,8 @@ extern "C" const char* __tsan_default_options();
void WEAK OverrideFlags(Flags *f) {
(void)f;
}
extern "C" const char *WEAK __tsan_default_options() {
extern "C" SANITIZER_INTERFACE_ATTRIBUTE
const char *WEAK __tsan_default_options() {
return "";
}
#endif
......
......@@ -40,6 +40,7 @@ static char ctx_placeholder[sizeof(Context)] ALIGNED(64);
#ifdef TSAN_EXTERNAL_HOOKS
bool OnFinalize(bool failed);
#else
SANITIZER_INTERFACE_ATTRIBUTE
bool WEAK OnFinalize(bool failed) {
return failed;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment