[patch] libstdc++/65913 Handle alignment in __atomic_is_lock_free

Jonathan Wakely jwakely@redhat.com
Thu Sep 17 14:05:00 GMT 2015


This fixes a 5/6 regression that causes atomic<int>::is_lock_free() to
require libatomic even on targets where the compiler knows the answer.

The new test only runs on x86_64-linux and powerpc*-linux. It isn't
actually OS-dependent but as long as it runs somewhere we should pick
up regressions so those commonly-tested targets are sufficient.

Tested x86_64-linux and powerpc64le-linux.

Richard, this is your middle-end change plus your suggestion for the
std::atomic members, which works just as you said it would. OK for
trunk?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 5780 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20150917/b03a51a1/attachment.bin>


More information about the Libstdc++ mailing list