[Ada] Do not use front-end build-in-place mechanism for nonlimited types
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 26 May 2022 11:34:55 +0000 (13:34 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 4 Jul 2022 07:45:55 +0000 (07:45 +0000)
commit02e41e69d4762937f6ba927059e22abf84801b32
tree7b5b52d3ff4e61e57af57d18de59a702074c96b2
parentc901877facf9635149ed69cabd88c871f60931fe
[Ada] Do not use front-end build-in-place mechanism for nonlimited types

It was only used in specific cases for controlled types but no longer
provides any significant benefit in practice.

gcc/ada/

* debug.adb (d.9): Remove usage.
* exp_ch6.adb (Expand_Simple_Function_Return): Remove redundant
test on Debug_Flag_Dot_L.
(Is_Build_In_Place_Result_Type): Return false for nonlimited types.
(Is_Build_In_Place_Function): Tidy up and remove redundant test on
Debug_Flag_Dot_L.
gcc/ada/debug.adb
gcc/ada/exp_ch6.adb