diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2022-12-08 10:51:29 +0100 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-01-03 10:29:53 +0100 |
commit | bfe1ab222a8095b31c29d8f3530268f048fea00f (patch) | |
tree | 0c9b2fb1534a52fb29ce8a0e67646f4e916d7788 /gcc/expr.cc | |
parent | 742084ada1e0974f5c7491fda65702e45bd07848 (diff) | |
download | gcc-bfe1ab222a8095b31c29d8f3530268f048fea00f.zip gcc-bfe1ab222a8095b31c29d8f3530268f048fea00f.tar.gz gcc-bfe1ab222a8095b31c29d8f3530268f048fea00f.tar.bz2 |
ada: Fix calling convention of foreign functions returning limited type
Such functions use neither Ada 2005's build-in-place mechanism nor Ada 95's
return-by-reference mechanism, but instead the common calling convention of
functions returning a nonlimited by-reference type.
gcc/ada/
* exp_ch6.adb (Is_Build_In_Place_Function): Adjust comment.
* sem_util.adb (Compute_Returns_By_Ref): Do not set Returns_By_Ref
on functions with foreign convention.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions