[Bug jit/96079] New: Unresolved atomic builtins
bouanto at zoho dot com
gcc-bugzilla@gcc.gnu.org
Mon Jul 6 13:23:15 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96079
Bug ID: 96079
Summary: Unresolved atomic builtins
Product: gcc
Version: 10.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: jit
Assignee: dmalcolm at gcc dot gnu.org
Reporter: bouanto at zoho dot com
Target Milestone: ---
Created attachment 48836
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48836&action=edit
Reproducer
Hi.
When I try to use an atomic builtin, it gives an error like:
libgccjit.so: error: /tmp/libgccjit-1VoggR/fake.so: undefined symbol:
__atomic_store_n
I tried setting the arch with:
gcc_jit_context_add_command_line_option(ctxt, "-march=x86-64");
but it didn't change anything.
>From inspecting the source code of gcc, it seems it does not support that yet
because it does not call resolve_overloaded_builtin (I might be wrong, I don't
have much knowledge of the gcc codebase).
So, is there a way to do that currently or is it a bug?
Thanks.
More information about the Gcc-bugs
mailing list