Subject: Re: bug#46256: [feature/native-comp] AOT eln files ignored if run from build tree

From: Eli Zaretskii <[email-masked]>
Date: Fri, 05 Mar 2021 22:31:48 +0200

> From: Andrea Corallo <[email-masked]>
> Cc: [email-masked], [email-masked]
> Date: Fri, 05 Mar 2021 19:22:34 +0000
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > Where do I find instructions to create a reproducer?
> 
> What we have as a doc is directly in the docstring of
> `comp-libgccjit-reproducer', I guess we could improve it.
> 
> Essentially having it bound to t while compiling produces a C file
> deposed where the .eln target directory.
> 
> This file ELNFILENAME_libgccjit_repro.c can be just compiled linking
> against libgccjit to obtain the reproducer.
> 
> libgccjit should never segfault so if this crashes is clearly a bug.

Thanks, will do.

One more question: does our code arrange for libgccjit to free
heap-allocated buffers that Emacs allocates, or vice versa (libgccjit
allocates memory that Emacs then frees)?  And do we arrange for any
callbacks from libgccjit, i.e. does libgccjit call functions
implemented in Emacs?  If the answer to any of these questions is YES,
could you please point me to the relevant places in the code?