diff options
Diffstat (limited to 'gcc/trans-mem.c')
-rw-r--r-- | gcc/trans-mem.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c index e74bd1f..c270d03 100644 --- a/gcc/trans-mem.c +++ b/gcc/trans-mem.c @@ -4413,12 +4413,8 @@ ipa_tm_scan_irr_block (basic_block bb) is to wrap it in a __tm_waiver block. This is not yet implemented, so we can't check for it. */ if (is_tm_safe (current_function_decl)) - { - tree t = build1 (NOP_EXPR, void_type_node, size_zero_node); - SET_EXPR_LOCATION (t, gimple_location (stmt)); - error ("%K%<asm%> not allowed in %<transaction_safe%> function", - t); - } + error_at (gimple_location (stmt), + "%<asm%> not allowed in %<transaction_safe%> function"); return true; default: |