Hi,

this patch fixes two cases, where the __tsan_func_entry is present but 
__tsan_func_exit is missing.
This results in bogus call stacks and memory leaks.

See PR 65400 for stripped down code samples where this was first discovered.


Boot-strapped and regression-tested on x86_64-linux-gnu.
OK for trunk?


Thanks
Bernd.
                                          
2015-03-14  Bernd Edlinger  <bernd.edlin...@hotmail.de>

        PR sanitizer/65400
        * ipa-split.c (plit_function): Insert a call to TSAN_FUNC_EXIT again.
        * tsan.c (instrument_gimple): Reset the tail call flag on each call
        statement.

Attachment: patch-tsan.diff
Description: Binary data

Reply via email to