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: "davem at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Dec 2003 01:10:36 -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 davem at gcc dot gnu dot org 2003-12-06 01:10 -------
Notice that the value 4294967305 is the expected value ("9") with bit
32 also set. Smells like a missing sign extension from 32 to 64 bits
somewhere.
I'll look more deeply into this.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12496