This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/12496] wrong result for __atomic_add(&value, -1) when using -O0 -m64


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]