[committed] Fix crash accessing builtins in sanitizer.def and after (PR jit/82174)

Michael Cree mcree@orcon.net.nz
Sun Jan 1 00:00:00 GMT 2017


On Thu, Sep 14, 2017 at 04:09:34PM -0400, David Malcolm wrote:
> Calls to gcc_jit_context_get_builtin_function that accessed builtins
> in sanitizer.def and after (or failed to match any builtin) led to
> a crash accessing a NULL builtin name.
  [snip]
> This patch updates jit-builtins.c to cope with such entries, fixing the
> crash.

Thanks for fixing that.

I would now like to get access to the architecture specific builtins.
Any possibility of that being implemented into libgccjit?  My project
is basically dead in the water without them.

Secondly, I am trying to work out how to initialise a vector rvalue
with specified values.  Something in the vein of
gcc_jit_new_rvalue_from_int() but creating a type with vector
attribute and where each individual element is set to some specified
value and it may not be the same value for each element.

The gcc C manual says "vectors can be subscripted as if the vector
were an array [...]" so I tried initialising a vector with
gcc_jit_context_new_array_access() but that fails with errors that
the vector is not a pointer or array at the time of JIT compilation.

Cheers
Michael.



More information about the Jit mailing list