https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109817
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Marc Poulhi?s <d...@gcc.gnu.org>: https://gcc.gnu.org/g:55ceb87a72fee45a9a3e547a4e688f31d376a95a commit r15-1322-g55ceb87a72fee45a9a3e547a4e688f31d376a95a Author: Eric Botcazou <ebotca...@adacore.com> Date: Mon Apr 29 09:15:13 2024 +0200 ada: Do not create null GCC thunks This prevents Gigi from creating null GCC thunks, i.e. thunks that have all their internal parameters set to zero, replacing them with aliases. They can arise in degenerate cases and null thunks would trip on an assertion in former_thunk_p when they are later optimized. gcc/ada/ PR ada/109817 * gcc-interface/trans.cc (maybe_make_gnu_thunk): Create an alias instead of a null thunk.