about header file parsing

akrl akrl@sdf.org
Tue Jan 1 00:00:00 GMT 2019


Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> writes:

> Am Fr., 18. Jan. 2019 um 21:10 Uhr schrieb akrl <akrl@sdf.org>:
>
> [...]
>
>> Okay I've submitted the patch for exposing gcc_jit_context_add_driver_option.
>
> That's great!
>
> Have you experimented with your patch and checked whether linking
> object statically with link-time optimization to the
> libgccjit-generated code works?

Seams to work for me.
I've verified I can inline a function defined in an external obj file
test.o.

This is what I had into the jitter code as conf:

gcc_jit_context_set_int_option(ctxt, GCC_JIT_INT_OPTION_OPTIMIZATION_LEVEL, 3);
gcc_jit_context_add_command_line_option(ctxt, "-flto");

gcc_jit_context_add_driver_option(ctxt, "-fuse-linker-plugin");
gcc_jit_context_add_driver_option(ctxt, "-flto");
gcc_jit_context_add_driver_option(ctxt, "test.o");

>> If Dave's agree on the idea of the modification I'll have a following
>> patch for exposing invoke_embedded_driver and invoke_external_driver
>> after the review process of the first is done.
>
> Very cool!
>
> [...]
>
> Thanks,
>
> Marc
>

Very welcome :)

Bests
   Andrea

-- 
akrl@sdf.org



More information about the Jit mailing list