--- Comment #3 from m dot rosellini at f5 dot com 2009-07-09 20:29 ---
OK, maybe some assembly will make the issue clearer. Or perhaps you just want
to close this bug if you're not fixing bugs in the 4.1 compiler. I verified
that the problem does occur with 4.1 and that it doe
--- Comment #1 from m dot rosellini at f5 dot com 2009-07-09 00:10 ---
I forgot to add: You need to compile this with -O2 and -march=pentium.
The way that negative constants are handled in the code emitted for
__sync_blah_and_blah is incorrect when the pointer type is 64-bits and the
tion
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: m dot rosellini at f5 dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40693