https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113692
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:fb28d5cdae149f08f0d472c210a5143a64771410 commit r14-8747-gfb28d5cdae149f08f0d472c210a5143a64771410 Author: Jakub Jelinek <ja...@redhat.com> Date: Fri Feb 2 11:28:31 2024 +0100 lower-bitint: Handle casts from large/huge _BitInt to pointer/reference types [PR113692] I thought one needs to cast first to pointer-sized integer before casting to pointer, but apparently that is not the case. So the following patch arranges for the large/huge _BitInt to pointer/reference conversions to use the same code as for conversions of them to small integral types. 2024-02-02 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/113692 * gimple-lower-bitint.cc (bitint_large_huge::lower_stmt): Handle casts from large/huge BITINT_TYPEs to POINTER_TYPE/REFERENCE_TYPE as final_cast_p. * gcc.dg/bitint-82.c: New test.