This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcc/56296] Undefined reference to __sync_add_and_fetch_8 for int64_t on MIPS32.
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 12 Feb 2013 11:56:39 +0000
- Subject: [Bug libgcc/56296] Undefined reference to __sync_add_and_fetch_8 for int64_t on MIPS32.
- Auto-submitted: auto-generated
- References: <bug-56296-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56296
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-12 11:56:39 UTC ---
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).