]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Do not create null GCC thunks
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 29 Apr 2024 07:15:13 +0000 (09:15 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 14 Jun 2024 07:34:50 +0000 (09:34 +0200)
commit55ceb87a72fee45a9a3e547a4e688f31d376a95a
tree2ec17a9279632c17d491d50086fcafa42bb56dcb
parentcac993e84ea363dc593799ad1a6d0db5d0165f16
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.
gcc/ada/gcc-interface/trans.cc