[Bug jit/95521] libgccjit.so: error: in build2, at tree.c:4743
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jun 4 13:57:45 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95521
--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> >libgccjit.so: error: in build2, at tree.c:4743
>
> This means the PLUS_EXPR is being used when adding a pointer and an integer
> together. It needs to be POINTER_PLUS_EXPR.
>
> This does not mean the bug is not in the JIT library but it might mean a bug
> in your code.
A goal of libgccjit is that it shouldn't be possible to generate an ICE by
making API calls; so this seems like a violation of that; we either need
stronger type-checking at the API boundary, or to be smarter about how we make
our trees.
More information about the Gcc-bugs
mailing list