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

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
The default langhook for type_for_size is a good place to look at, and it walks
the extended integer types recorded:

  for (i = 0; i < NUM_INT_N_ENTS; i ++)
    if (int_n_enabled_p[i]
        && precision == int_n_data[i].bitsize)
      return (unsignedp ? int_n_trees[i].unsigned_type
              : int_n_trees[i].signed_type);

There's the question why recording::context::get_int_type does
not simply use lang_hooks.types.type_for_size.

Reply via email to