This is an archive of the discontinued LLVM Phabricator instance.

tsan: fix warnings in tests
ClosedPublic

Authored by dvyukov on Apr 27 2021, 11:40 PM.

Details

Summary

Fix format specifier.
Fix warnings about non-standard attribute placement.
Make free_race2.c test a bit more interesting:
test access with/without an offset.

Diff Detail

Event Timeline

dvyukov requested review of this revision.Apr 27 2021, 11:40 PM
dvyukov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2021, 11:40 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
dvyukov updated this revision to Diff 341077.Apr 27 2021, 11:42 PM

be consistent with noinline attribute placement

Harbormaster completed remote builds in B101330: Diff 341077.
vitalybuka accepted this revision.Apr 28 2021, 11:53 AM
vitalybuka added inline comments.
compiler-rt/test/tsan/free_race2.c
8–15

why do you need two identical functions?

This revision is now accepted and ready to land.Apr 28 2021, 11:53 AM
dvyukov added inline comments.Apr 28 2021, 10:32 PM
compiler-rt/test/tsan/free_race2.c
8–15

They have different names, we check function names as part of output tests below.
I have some pending changes that made the wrong function show up due to a bug.

This revision was automatically updated to reflect the committed changes.