[Bug target/40693] atomic built-ins malfunction with 64-bit signed ptrs and negative constants

2009-07-09 Thread m dot rosellini at f5 dot com
--- 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

[Bug c/40693] atomic built-ins malfunction with 64-bit and optimization

2009-07-08 Thread m dot rosellini at f5 dot com
--- 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

[Bug c/40693] New: atomic built-ins malfunction with 64-bit and optimization

2009-07-08 Thread m dot rosellini at f5 dot com
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