https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121903
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by David Faust <dfa...@gcc.gnu.org>: https://gcc.gnu.org/g:bace01eeab69cabd0a326174909ced554af85c79 commit r16-3889-gbace01eeab69cabd0a326174909ced554af85c79 Author: David Faust <david.fa...@oracle.com> Date: Mon Sep 15 15:03:31 2025 -0700 ctf: Fix struct size truncation in 32-bit hosts [PR121903,PR121411] The 'size' argument of ctf_add_sou was size_t. After the prior fixes for PR121411, this could cause the struct size to be truncated when encoding extremely large structs on a host where size_t is smaller than unsigned HOST_WIDE_INT, manifesting for example as the test failure reported in PR121903. Change the argument to uHWI to resolve the issue. PR debug/121411 PR debug/121903 gcc/ * ctfc.h (ctf_add_sou): Change size arg from size_t to uHWI. * ctfc.cc (ctf_add_sou): Likewise.