This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: __sync_fetch_and_add_4 in libstdc++
"Maciej (Matchek) BliziÅski" <maciej@opencsw.org> writes:
> Other
> workarounds found on the web suggest changing the target architecture
> to i686. Not satisfied with these workarounds, I've done some digging
> with help from friends (kudos to Joerg Schilling!).
...
> The fix would probably involve compiling libstdc++ in such a way, that
> __sync_fetch_and_add_4 would be generated. Do you have an idea how to
> achieve this?
I recommend changing the target architecture to i686. The easy way to
do this is to add --with-arch-32=i686 when you run configure. You don't
have to use i686--you can use the minimum processor type that you expect
to encounter.
Ian