public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug jit/96079] New: Unresolved atomic builtins
@ 2020-07-06 13:23 bouanto at zoho dot com
  2020-07-06 13:37 ` [Bug jit/96079] " redi at gcc dot gnu.org
  2021-05-18  0:58 ` bouanto at zoho dot com
  0 siblings, 2 replies; 3+ messages in thread
From: bouanto at zoho dot com @ 2020-07-06 13:23 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug jit/96079] Unresolved atomic builtins
  2020-07-06 13:23 [Bug jit/96079] New: Unresolved atomic builtins bouanto at zoho dot com
@ 2020-07-06 13:37 ` redi at gcc dot gnu.org
  2021-05-18  0:58 ` bouanto at zoho dot com
  1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2020-07-06 13:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96079

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It seems like all these bugs with atomics in libgccjit could be a single bug
report.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug jit/96079] Unresolved atomic builtins
  2020-07-06 13:23 [Bug jit/96079] New: Unresolved atomic builtins bouanto at zoho dot com
  2020-07-06 13:37 ` [Bug jit/96079] " redi at gcc dot gnu.org
@ 2021-05-18  0:58 ` bouanto at zoho dot com
  1 sibling, 0 replies; 3+ messages in thread
From: bouanto at zoho dot com @ 2021-05-18  0:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96079

Antoni <bouanto at zoho dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Antoni <bouanto at zoho dot com> ---
The actual call should be with a number instead of `n`, i.e.
`__atomic_store_4`.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-18  0:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06 13:23 [Bug jit/96079] New: Unresolved atomic builtins bouanto at zoho dot com
2020-07-06 13:37 ` [Bug jit/96079] " redi at gcc dot gnu.org
2021-05-18  0:58 ` bouanto at zoho dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).