]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Remove strange elaboration code generated for Cluster type in System.Pack_NN
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 19 Jun 2025 17:15:35 +0000 (19:15 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 4 Jul 2025 07:41:48 +0000 (09:41 +0200)
commitccf668274ac66f9692eb0b6775e522ed240890f7
tree056800a0f5e79fcb4ab3aaf9082f36aa69a9bfc0
parent372c2b540f699a8aa5016c03f3ebd531b2d9991e
ada: Remove strange elaboration code generated for Cluster type in System.Pack_NN

Initialization procedures are turned into functions under the hood and, even
when they are null (empty), the compiler may generate a convoluted sequence
of instructions that return uninitialized data and, therefore, is useless.

gcc/ada/ChangeLog:

* gcc-interface/trans.cc (Subprogram_Body_to_gnu): Do not generate
a block-copy out for a null initialization procedure when the _Init
parameter is not passed in.
gcc/ada/gcc-interface/trans.cc