aboutsummaryrefslogtreecommitdiff
path: root/gcc/trans-mem.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2012-02-15 00:29:06 +0000
committerAldy Hernandez <aldyh@redhat.com>2012-02-15 00:29:06 +0000
commit90f8353a0e65b16bb75b9851d5afc4c6a8f7e1d1 (patch)
tree2c16b036b6df96a695142714e48c0d7df1a609a3 /gcc/trans-mem.c
parent6206803448efa837a3e9f21753c9111d84f00276 (diff)
+ PR middle-end/52142
+ * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure + functions into non-tm_pure functions. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@184251 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/trans-mem.c')
-rw-r--r--gcc/trans-mem.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c
index d760db34b2a..b7320b5ee72 100644
--- a/gcc/trans-mem.c
+++ b/gcc/trans-mem.c
@@ -3736,6 +3736,10 @@ ipa_tm_scan_irr_block (basic_block bb)
assembly statement is not relevant to the transaction
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))
+ error_at (gimple_location (stmt),
+ "asm not allowed in %<transaction_safe%> function %qE",
+ current_function_decl);
return true;
default: