aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2011-12-13 17:49:55 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2011-12-13 17:49:55 +0000
commit80fd8eba8ed7cc70a89e4f31931a5da28464357a (patch)
tree89273e22c9ce249019e6e3514fc2903fb218f70a /gcc/testsuite/gcc.dg
parentd370518679f55fa676afe6010301945b9ccc7053 (diff)
downloadgcc-80fd8eba8ed7cc70a89e4f31931a5da28464357a.zip
gcc-80fd8eba8ed7cc70a89e4f31931a5da28464357a.tar.gz
gcc-80fd8eba8ed7cc70a89e4f31931a5da28464357a.tar.bz2
trans-mem.c (struct diagnose_tm): Remove saw_unsafe.
PR/51443 * trans-mem.c (struct diagnose_tm): Remove saw_unsafe. (diagnose_tm_1): Same. (ipa_tm_execute): Do not test tm_may_enter_irr before we set it. (ipa_tm_scan_irr_function): Return gracefully when no DECL_STRUCT_FUNCTION. (ipa_tm_scan_irr_block): Believe the user on TM attributes. From-SVN: r182290
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r--gcc/testsuite/gcc.dg/tm/asm-1.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tm/asm-1.c b/gcc/testsuite/gcc.dg/tm/asm-1.c
new file mode 100644
index 0000000..a3826e2
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/tm/asm-1.c
@@ -0,0 +1,13 @@
+/* { dg-do compile } */
+/* { dg-options "-fgnu-tm -O1" } */
+
+static inline void asmfunc()
+{
+__asm__("");
+}
+
+__attribute__((transaction_callable))
+void push()
+{
+ asmfunc();
+}