ada: Simplify new expansion of contracts
commitf0bed52ec97a485aa6ddfd6d83a20402eaf4a63e
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 15 Dec 2022 18:33:45 +0000 (15 19:33 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 5 Jan 2023 14:29:59 +0000 (5 15:29 +0100)
tree4e5eb54ad71d1151f1f76528d2977f5824b7ebd6
parent90d3cd03b35147b24091e7eba249fd4ea178082f
ada: Simplify new expansion of contracts

We can now use an extended return statement in all cases since it no longer
generates an extra copy for nonlimited by-reference types.

gcc/ada/

* contracts.adb (Build_Subprogram_Contract_Wrapper): Generate an
extended return statement in all cases.
(Expand_Subprogram_Contract): Adjust comment.
gcc/ada/contracts.adb