https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49244
--- Comment #8 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to dhowe...@redhat.com from comment #6) > I'm looking to implement Linux kernel atomics with C++-11 intrinsics, so > being able to reduce a CMPXCHG-loop to BTR/BTS/BTC would be really handy. BTW: A low-hanging fruit in this area would be using new asm flags feature, as explained in [1]. There is also LKML discussion about the possible patch [2]. [1] http://developers.redhat.com/blog/2016/02/25/new-asm-flags-feature-for-x86-in-gcc-6/ [2] https://lkml.org/lkml/2015/7/27/735