diff options
Diffstat (limited to 'gcc/tsan.c')
-rw-r--r-- | gcc/tsan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tsan.c b/gcc/tsan.c index 26833ee244b..8aac468a444 100644 --- a/gcc/tsan.c +++ b/gcc/tsan.c @@ -448,7 +448,7 @@ instrument_builtin_call (gimple_stmt_iterator *gsi) case fetch_op: last_arg = gimple_call_arg (stmt, num - 1); if (!tree_fits_uhwi_p (last_arg) - || (unsigned HOST_WIDE_INT) tree_low_cst (last_arg, 1) + || (unsigned HOST_WIDE_INT) tree_to_uhwi (last_arg) > MEMMODEL_SEQ_CST) return; gimple_call_set_fndecl (stmt, decl); @@ -520,11 +520,11 @@ instrument_builtin_call (gimple_stmt_iterator *gsi) for (j = 0; j < 6; j++) args[j] = gimple_call_arg (stmt, j); if (!tree_fits_uhwi_p (args[4]) - || (unsigned HOST_WIDE_INT) tree_low_cst (args[4], 1) + || (unsigned HOST_WIDE_INT) tree_to_uhwi (args[4]) > MEMMODEL_SEQ_CST) return; if (!tree_fits_uhwi_p (args[5]) - || (unsigned HOST_WIDE_INT) tree_low_cst (args[5], 1) + || (unsigned HOST_WIDE_INT) tree_to_uhwi (args[5]) > MEMMODEL_SEQ_CST) return; update_gimple_call (gsi, decl, 5, args[0], args[1], args[2], |