From 1d4854da4f0b93a33f64d1971e349c41cc6cd14d Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Fri, 2 Jan 2015 22:41:10 +0000 Subject: [PATCH] * tsan.c (instrument_expr): corrected previous checkin. From-SVN: r219152 --- gcc/ChangeLog | 4 ++++ gcc/tsan.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3957600745c..fcb792331c3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-01-02 Bernd Edlinger + + * tsan.c (instrument_expr): corrected previous checkin. + 2015-01-02 Bernd Edlinger Instrument bit field and unaligned accesses for TSAN. diff --git a/gcc/tsan.c b/gcc/tsan.c index 7992a449508..50ae4ef8fa4 100644 --- a/gcc/tsan.c +++ b/gcc/tsan.c @@ -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 -- 2.30.2