https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123785

--- Comment #2 from Jose E. Marchesi <jemarch at gcc dot gnu.org> ---
This is happening because we have in a68_init (LANG_HOOKS_INIT):

  build_common_tree_nodes (false);
  targetm.init_builtins ();          /* crash in alpha's init_builtins */
  a68_build_a68_type_nodes ();
  build_common_builtin_nodes ();
  a68_install_builtins ();

And type_for_mode is using the types built by
a68_build_a68_type_nodes.  So I think the right solution here is to
just build the a68_type_nodes before calling the target's
init_builtins.

Reply via email to