https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124941
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <[email protected]>: https://gcc.gnu.org/g:c943ae3ddf494c7c0f16cdb3041a23cd9e75ac30 commit r16-8774-gc943ae3ddf494c7c0f16cdb3041a23cd9e75ac30 Author: Jakub Jelinek <[email protected]> Date: Tue Apr 21 11:49:23 2026 +0200 sccvn: Use build_bitint_type in another SCCVN spot [PR124941] The following testcase ICEs on riscv. tree-ssa-sccvn.cc (vn_walk_cb_data::push_partial_def) already uses build_bitint_type instead of build_nonstandard_integer_type for larger BITINT_TYPE types: /* Make sure to interpret in a type that has a range covering the whole access size. */ if (INTEGRAL_TYPE_P (vr->type) && maxsizei != TYPE_PRECISION (vr->type)) { if (TREE_CODE (vr->type) == BITINT_TYPE && maxsizei > MAX_FIXED_MODE_SIZE) type = build_bitint_type (maxsizei, TYPE_UNSIGNED (type)); else type = build_nonstandard_integer_type (maxsizei, TYPE_UNSIGNED (type)); } and the same change in vn_reference_lookup_3 fixes the ICE. 2026-04-21 Jakub Jelinek <[email protected]> PR tree-optimization/124941 * tree-ssa-sccvn.cc (vn_reference_lookup_3): Use build_bitint_type rather than build_nonstandard_integer_type for maxsizei larger than MAX_FIXED_MODE_SIZE. * gcc.dg/bitint-129.c: New test. Reviewed-by: Richard Biener <[email protected]>
