diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2011-11-20 10:29:22 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2011-11-20 10:29:22 +0000 |
commit | 088b91c76fe3051e27fc07243e51dd79b4c7547a (patch) | |
tree | 9c844bb48a22047801d660226093b217eb80a6b0 /gcc/expr.c | |
parent | 0d24bf7601974f373cce377a50132c485d488e18 (diff) | |
download | gcc-088b91c76fe3051e27fc07243e51dd79b4c7547a.zip gcc-088b91c76fe3051e27fc07243e51dd79b4c7547a.tar.gz gcc-088b91c76fe3051e27fc07243e51dd79b4c7547a.tar.bz2 |
trans.c (struct language_function): Add GNAT_RET.
* gcc-interface/trans.c (struct language_function): Add GNAT_RET.
(f_gnat_ret): New macro.
(struct nrv_data): Add GNAT_RET.
(finalize_nrv_unc_r): New helper function.
(finalize_nrv): Add GNAT_RET parameter. Copy it into DATA. If the
function returns unconstrained, use finalize_nrv_unc_r as callback.
(return_value_ok_for_nrv_p): Test the alignment of RET_OBJ only if
RET_OBJ is non-null.
(Subprogram_Body_to_gnu): Pass GNAT_RET to finalize_nrv.
(gnat_to_gnu) <N_Return_Statement>: In the return-unconstrained case,
if optimization is enabled, record candidates for the Named Return
Value optimization.
From-SVN: r181528
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions