[Bug c++/60272] atomic<>::compare_exchange_weak has spurious store and can cause race conditions

2016-06-04 Thread max.wittal at mwittal dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60272 --- Comment #10 from Max Wittal --- Sorry, I'm pretty sure now that there is some hard to find bug in my code, like the ABA problem. Please disregard my comment above.

[Bug c++/60272] atomic<>::compare_exchange_weak has spurious store and can cause race conditions

2016-06-04 Thread max.wittal at mwittal dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60272 --- Comment #9 from Max Wittal --- I still get this bug in gcc version 5.2.1 20151010 on x86_64-linux-gnu. Please see attached code.

[Bug c++/60272] atomic<>::compare_exchange_weak has spurious store and can cause race conditions

2016-06-04 Thread max.wittal at mwittal dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60272 Max Wittal changed: What|Removed |Added CC||max.wittal at mwittal dot de --- Comment

[Bug c++/60272] atomic::compare_exchange_weak has spurious store and can cause race conditions

2014-02-20 Thread rth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60272 --- Comment #4 from Richard Henderson rth at gcc dot gnu.org --- Author: rth Date: Thu Feb 20 17:43:53 2014 New Revision: 207966 URL: http://gcc.gnu.org/viewcvs?rev=207966root=gccview=rev Log: PR c++/60272 gcc/ * builtins.c

[Bug c++/60272] atomic::compare_exchange_weak has spurious store and can cause race conditions

2014-02-20 Thread rth at gcc dot gnu.org
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=207972root=gccview=rev Log: PR c++/60272 * builtins.c

[Bug c++/60272] atomic::compare_exchange_weak has spurious store and can cause race conditions

2014-02-20 Thread rth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60272 --- Comment #6 from Richard Henderson rth at gcc dot gnu.org --- Author: rth Date: Fri Feb 21 00:14:05 2014 New Revision: 207973 URL: http://gcc.gnu.org/viewcvs?rev=207973root=gccview=rev Log: PR c++/60272 gcc/ * builtins.c

[Bug c++/60272] atomic::compare_exchange_weak has spurious store and can cause race conditions

2014-02-20 Thread rth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60272 Richard Henderson rth at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug c++/60272] atomic::compare_exchange_weak has spurious store and can cause race conditions

2014-02-19 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60272 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[Bug c++/60272] atomic::compare_exchange_weak has spurious store and can cause race conditions

2014-02-19 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60272 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added CC||jakub at gcc dot

[Bug c++/60272] atomic::compare_exchange_weak has spurious store and can cause race conditions

2014-02-19 Thread torvald at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60272 --- Comment #2 from torvald at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #1) So, either we'd need to change this function, so that it sets oldval to NULL_RTX first, and passes ..., oldval, mem, expected, ... and needs to also

[Bug c++/60272] atomic::compare_exchange_weak has spurious store and can cause race conditions

2014-02-19 Thread rth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60272 Richard Henderson rth at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rth at