[Bug jit/87291] Add support for inline asm to libgccjit

dmalcolm at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jun 6 08:56:20 GMT 2020


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

--- Comment #24 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
(In reply to bouanto from comment #23)
> Created attachment 48685 [details]
> Example of global assembly

[...snip....; thanks for the feedback]

> I attached an example of global assembly.

Thanks.

> I don't understand the ordering issue.
> I also don't understand how gcc_jit_context_new_function is used here.

I see that you have a balanced .pushsection/.popsection pair in your example. 
Is it ever the case that people might want to have a .pushsection, then some C 
code, then a .popsection?  (and, by analogy, the same for libgccjit rather than
C).  That's the ordering issue I'm concerned about, since at that point it
matters what order the hand-written asm is in relative to the
compiler-generated asm.


More information about the Gcc-bugs mailing list