[Bug c++/43980] Using __sync_fetch_and_add produces linking errors on OpenSolaris

2010-05-03 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-05-03 20:00 --- I think you need -march=i486 on solaris for this to work. At least with 4.4. Now with 4.5, it is a different story. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43980

[Bug c++/43980] Using __sync_fetch_and_add produces linking errors on OpenSolaris

2010-05-03 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2010-05-03 20:03 --- I suspect this is just the usual issue with i386, which does not provide the atomic builtins. You should try with, eg, -march=i486, and if the problem goes away this is a duplicate of some other 30 PRs ;) --

[Bug c++/43980] Using __sync_fetch_and_add produces linking errors on OpenSolaris

2010-05-03 Thread kgardas at objectsecurity dot com
--- Comment #3 from kgardas at objectsecurity dot com 2010-05-03 20:30 --- Folks, please close this. Indeed, when I add -march=i486 I get no linker errors anymore. Thanks for your fast help! Karel -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43980

[Bug c++/43980] Using __sync_fetch_and_add produces linking errors on OpenSolaris

2010-05-03 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2010-05-03 20:37 --- Ok -- paolo dot carlini at oracle dot com changed: What|Removed |Added