This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/12496] wrong result for __atomic_add(&value, -1) when using -O0 -m64
- From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Dec 2003 10:01:08 -0000
- Subject: [Bug libstdc++/12496] wrong result for __atomic_add(&value, -1) when using -O0 -m64
- References: <20031003073054.12496.patrick.frants@quintiq.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-12-08 10:01 -------
Subject: Bug 12496
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: davem@gcc.gnu.org 2003-12-08 10:01:02
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/config/cpu/sparc: atomicity.h
Log message:
2003-12-08 David S. Miller <davem@redhat.com>
PR libstdc++/12496
* config/cpu/sparc/atomicity.h (__exchange_and_add, __atomic_add):
Extend increment to _Atomic_word before giving to assembler.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2133&r2=1.2134
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/config/cpu/sparc/atomicity.h.diff?cvsroot=gcc&r1=1.2&r2=1.3
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12496