]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Update comment after recent changes wrt. secondary stack & tagged types
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 9 Jun 2022 16:49:10 +0000 (18:49 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 6 Jul 2022 13:29:49 +0000 (13:29 +0000)
gcc/ada/

* gcc-interface/trans.cc (gnat_to_gnu): Update comment.

gcc/ada/gcc-interface/trans.cc

index aec27e16569ac15637b134bf116b3f37a76d0357..8164801b2af40b1279ed09e64e12f842a4d0235a 100644 (file)
@@ -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))