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