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:21 -------
The bug is that the __atomic_{inc,dec} routines were not properly
sign extending the __val argument from an int to an _Atomic_word.

I'm going to attach a patch I am testing right now.


-- 


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]