This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/24692] Atomic builtins for v3
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Nov 2005 10:16:32 -0000
- Subject: [Bug other/24692] Atomic builtins for v3
- References: <bug-24692-133@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from rguenth at gcc dot gnu dot org 2005-11-07 10:16 -------
Paolo, the only viable way to get these inlined looks like a libstdc++
configure-time choice to say --disable-i386-support or sth like that. You then
build libstdc++ against the atomic builtin primitives and at application
build-time either try falling back with preprocessor stuff rth suggested, or
don't do it and fail either at compile-time or later (maybe) at runtime with
some SIGILL or whatever you'll get.
Supporting different architectures and inlining at the same time is not
possible (well, apart from fixup by binary-patching at program startup, like
the kernel does (or did?), of course ;))
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24692