aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2022-06-09 18:49:10 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2022-07-06 13:29:49 +0000
commitfc84bb8c167297dd739d8ced30b2193b3892080d (patch)
treeff8d1080dd9b471c5fe542b9404218466744d3fd /gcc
parent1141fbd71ea1782c6eac750cfed809f0706aaafc (diff)
downloadgcc-fc84bb8c167297dd739d8ced30b2193b3892080d.zip
gcc-fc84bb8c167297dd739d8ced30b2193b3892080d.tar.gz
gcc-fc84bb8c167297dd739d8ced30b2193b3892080d.tar.bz2
[Ada] Update comment after recent changes wrt. secondary stack & tagged types
gcc/ada/ * gcc-interface/trans.cc (gnat_to_gnu): Update comment.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/gcc-interface/trans.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/ada/gcc-interface/trans.cc b/gcc/ada/gcc-interface/trans.cc
index aec27e1..8164801 100644
--- a/gcc/ada/gcc-interface/trans.cc
+++ b/gcc/ada/gcc-interface/trans.cc
@@ -7387,9 +7387,7 @@ gnat_to_gnu (Node_Id gnat_node)
gnu_ret_val = maybe_unconstrained_array (gnu_ret_val);
/* And find out whether it is a candidate for Named Return
- Value. If so, record it. Note that we disable this NRV
- optimization when we're preserving the control flow as
- it entails hoisting the allocation done below. */
+ Value. If so, record it. */
if (optimize
&& !optimize_debug
&& !TYPE_CI_CO_LIST (gnu_subprog_type))