This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/52142] [trans-mem] inlined transaction_pure functions are instrumented
- From: "patrick.marlier at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 06 Feb 2012 21:35:09 +0000
- Subject: [Bug middle-end/52142] [trans-mem] inlined transaction_pure functions are instrumented
- Auto-submitted: auto-generated
- References: <bug-52142-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52142
--- Comment #1 from Patrick Marlier <patrick.marlier at gmail dot com> 2012-02-06 21:35:09 UTC ---
Created attachment 26593
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26593
another testcase but with an asm statement
the asm statement is in a transaction_pure function but diagnose a asm
statement into an atomic transaction.
$ ../gcc/xgcc -B/../gcc/ asm-2.c -fgnu-tm -O0 -S -o asm-2.s
$ ../gcc/xgcc -B/../gcc/ asm-2.c -fgnu-tm -O1 -S -o asm-2.s
asm-2.c:7:3: error: asm not allowed in atomic transaction