]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Back out removal of renaming tranformation
authorBob Duff <duff@adacore.com>
Thu, 6 Mar 2025 19:21:51 +0000 (14:21 -0500)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 9 Jun 2025 06:32:09 +0000 (08:32 +0200)
commit027457ded6416c36f5b76a24153a69b7ff3f2f0e
tree06be509cee80e4972fd9146b5ac7dd1777ca3a5e
parentaf68e74167292709c238a35a40720714679bb394
ada: Back out removal of renaming tranformation

A previous change (commit 33eebd96d27fa2b29cec79f55167a11aaf7f4802)
removed code in Analyze_Object_Renaming that tranformed renamings
into object declarations. This reinstates that code.

Removing the code causes failures in
gnatbugs-large/2023/gnat-435_deep_blue_capital.
Ideally, we SHOULD remove that transformation at some point,
but that will require further changes.

gcc/ada/ChangeLog:

* exp_ch6.adb: (Make_Build_In_Place_Call_In_Object_Declaration):
Deal with renamings transformed into object declarations.
* sem_ch8.adb (Analyze_Object_Renaming):
Reinstate transformation of a renaming into
an object declaration.
gcc/ada/exp_ch6.adb
gcc/ada/sem_ch8.adb