This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60272] atomic<>::compare_exchange_weak has spurious store and can cause race conditions
- From: "rth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 21 Feb 2014 00:12:14 +0000
- Subject: [Bug c++/60272] atomic<>::compare_exchange_weak has spurious store and can cause race conditions
- Auto-submitted: auto-generated
- References: <bug-60272-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60272
--- Comment #5 from Richard Henderson <rth at gcc dot gnu.org> ---
Author: rth
Date: Fri Feb 21 00:11:43 2014
New Revision: 207972
URL: http://gcc.gnu.org/viewcvs?rev=207972&root=gcc&view=rev
Log:
PR c++/60272
* builtins.c (expand_builtin_atomic_compare_exchange): Always make
a new pseudo for OLDVAL.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/builtins.c