Created attachment 48836 [details] 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.
It seems like all these bugs with atomics in libgccjit could be a single bug report.
The actual call should be with a number instead of `n`, i.e. `__atomic_store_4`.