http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52142
Bug #: 52142 Summary: [trans-mem] inlined transaction_pure functions are instrumented Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: patrick.marl...@gmail.com CC: al...@gcc.gnu.org, r...@gcc.gnu.org Created attachment 26592 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26592 testcase with -fgnu-tm -O1 In this testcase, the function 'purefunc' has inline and transaction_pure attribute. In the optimized mode (-O), the function becomes inlined but also instrumented whereas it was annotated transaction_pure.