[Bug libgcc/56296] Undefined reference to __sync_add_and_fetch_8 for int64_t on MIPS32.

kilvadyb at homejinni dot com gcc-bugzilla@gcc.gnu.org
Tue Feb 12 12:12:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56296

--- Comment #2 from Balazs Kilvady <kilvadyb at homejinni dot com> 2013-02-12 12:12:22 UTC ---
(In reply to comment #1)
> Why do you think this is a bug?  If a target doesn't support atomic operations
> on certain variable sizes, this is what you get, you are out of luck with
> atomicity in that case.  In GCC 4.8 you can use libatomic which will provide
> emulation for that case using locks (though, of course, in that case all
> accesses to the var need to be done using atomic builtins).

Thank you for the quick reply.



More information about the Gcc-bugs mailing list