* tsan.c (instrument_expr): corrected previous checkin.

From-SVN: r219152
This commit is contained in:
Bernd Edlinger 2015-01-02 22:41:10 +00:00 committed by Bernd Edlinger
parent d0cbab5fed
commit 1d4854da4f
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
* tsan.c (instrument_expr): corrected previous checkin.
2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
Instrument bit field and unaligned accesses for TSAN.

View File

@ -227,7 +227,7 @@ instrument_expr (gimple_stmt_iterator gsi, tree expr, bool is_write)
gimple_set_location (g, loc);
gimple_seq_add_stmt_without_update (&seq, g);
}
if ((size & (size - 1)) == 0 || size > 16
if ((size & (size - 1)) != 0 || size > 16
|| align < MIN (size, 8) * BITS_PER_UNIT)
{
builtin_decl = builtin_decl_implicit (is_write