ada: Fix too small secondary stack allocation for returned aggregate
commitc8c5bf93aaa481d4b08491d4545b74e2b329d16d
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 13 May 2023 08:55:44 +0000 (13 10:55 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 15 Jun 2023 07:59:37 +0000 (15 09:59 +0200)
treec537e34a093e930a0e101a0a31cda9ecd17a1e0a
parent3f3f37c3f72f4840ef2d304e00f5bc8c28374bce
ada: Fix too small secondary stack allocation for returned aggregate

This restores the specific treatment of aggregates that are returned through
an extended return statement in a function returning a class-wide type, and
which was incorrectly dropped in an earlier change.

gcc/ada/

* exp_ch3.adb (Make_Allocator_For_Return): Deal again specifically
with an aggregate returned through an object of a class-wide type.
gcc/ada/exp_ch3.adb