aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.h
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2025-01-22 08:35:41 -0500
committerDavid Malcolm <dmalcolm@redhat.com>2025-01-22 08:35:41 -0500
commit27470f9a818538fadb0e458a272358c7141fcd8c (patch)
tree2891d66b715bdd2a7c119951ab94b0425a4a61d5 /gcc/tree-vectorizer.h
parent9ece1c247b4d8dbb997a3dc16daa613401c6a84a (diff)
downloadgcc-27470f9a818538fadb0e458a272358c7141fcd8c.zip
gcc-27470f9a818538fadb0e458a272358c7141fcd8c.tar.gz
gcc-27470f9a818538fadb0e458a272358c7141fcd8c.tar.bz2
jit: fix startup on aarch64
libgccjit fails on startup on aarch64 (and probably other archs). The issues are that (a) within jit_langhook_init the call to targetm.init_builtins can use types that aren't representable via jit::recording::type, and (b) targetm.init_builtins can call lang_hooks.decls.pushdecl, which although a no-op for libgccjit has a gcc_unreachable. Fixed thusly. gcc/jit/ChangeLog: * dummy-frontend.cc (tree_type_to_jit_type): For POINTER_TYPE, bail out if the inner call to tree_type_to_jit_type fails. Don't abort on unknown types. (jit_langhook_pushdecl): Replace gcc_unreachable with return of NULL_TREE. Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions