ada: Call idiomatic routine in Expand_Simple_Function_Return
commitfe8b341f09a13e1dcaa2788f123d69122c5cdea5
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 8 Apr 2023 10:43:54 +0000 (8 12:43 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 29 May 2023 08:23:22 +0000 (29 10:23 +0200)
tree48f7fb010bde3a6314ffd0d2ea40c7c914073adf
parentdf3480cdb6626759b35d1b2527e3f6a6fc4dcc98
ada: Call idiomatic routine in Expand_Simple_Function_Return

In the primary stack case, Insert_Actions is invoked when the expression is
being rewritten, whereas Insert_List_Before_And_Analyze is invoked in the
secondary stack case.  The former is idiomatic, the latter is not.

gcc/ada/

* exp_ch6.adb (Expand_Simple_Function_Return): Call Insert_Actions
consistently when rewriting the expression.
gcc/ada/exp_ch6.adb