[Bug libstdc++/46294] New: Spinlock with atomic primitives fails

2010-11-03 Thread dan at blinkmind dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46294 Summary: Spinlock with atomic primitives fails Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassig.

[Bug libstdc++/46294] Spinlock with atomic primitives fails

2010-11-03 Thread dan at blinkmind dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46294 --- Comment #1 from Dan Weber 2010-11-03 18:11:11 UTC --- Created attachment 22260 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22260 Spinlock Test g++ ii output

[Bug libstdc++/46294] Spinlock with atomic primitives fails

2010-11-03 Thread dan at blinkmind dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46294 --- Comment #2 from Dan Weber 2010-11-03 18:11:37 UTC --- Created attachment 22261 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22261 G++ Assembler Output atomic test

[Bug libstdc++/46294] Spinlock with atomic primitives fails

2010-11-03 Thread dan at blinkmind dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46294 --- Comment #3 from Dan Weber 2010-11-03 18:12:01 UTC --- Created attachment 22262 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22262 Spinlock Test G++ object file

[Bug libstdc++/46294] Spinlock with atomic primitives fails

2010-11-03 Thread dan at blinkmind dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46294 --- Comment #4 from Dan Weber 2010-11-03 18:12:58 UTC --- Created attachment 22263 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22263 TBB based spinlock (working) Compiler with -ltbb keep -fopenmp, but -std=c++0x is unnecessary

[Bug libstdc++/46294] Spinlock with atomic primitives fails

2010-11-03 Thread dan at blinkmind dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46294 --- Comment #5 from Dan Weber 2010-11-03 18:16:28 UTC --- Probably requires testing using a machine that has multiple cores :) My Machine is an INtel i7 720qm, so it has 4 cores + 4 hyperthreads fyi.

[Bug libstdc++/46294] Spinlock with atomic primitives fails

2010-11-03 Thread dan at blinkmind dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46294 --- Comment #6 from Dan Weber 2010-11-03 18:19:04 UTC --- Created attachment 22264 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22264 TBB Spinlock assembler (includes compare and swap and fetch and store ops inline)

[Bug libstdc++/46294] Spinlock with atomic primitives fails

2010-11-03 Thread dan at blinkmind dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46294 Dan Weber changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|