mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-04 15:20:14 +08:00
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
This commit is contained in:
parent
25c90aae33
commit
81c87471e9
@ -1,5 +1,10 @@
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user