]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Inline: rewrap comment
authorYannick Moy <moy@adacore.com>
Mon, 16 Jul 2018 14:10:22 +0000 (14:10 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 16 Jul 2018 14:10:22 +0000 (14:10 +0000)
2018-07-16  Yannick Moy  <moy@adacore.com>

gcc/ada/

* inline.adb (Has_Single_Return): Rewrap comment.

From-SVN: r262706

gcc/ada/ChangeLog
gcc/ada/inline.adb

index 98314567ea8e6637812c556b9383512206ee2b31..d041f5620431c337d84af557fd7dbf8aa4f252a9 100644 (file)
@@ -1,3 +1,7 @@
+2018-07-16  Yannick Moy  <moy@adacore.com>
+
+       * inline.adb (Has_Single_Return): Rewrap comment.
+
 2018-07-16  Eric Botcazou  <ebotcazou@adacore.com>
 
        * einfo.ads: Minor tweak in comment.
index 23de7a736514dde45965693ada1e368031e2f37f..bc01ffc58ceaecbfbeec3cc868c0f33b42021afe 100644 (file)
@@ -197,10 +197,10 @@ package body Inline is
 
    function Has_Single_Return (N : Node_Id) return Boolean;
    --  In general we cannot inline functions that return unconstrained type.
-   --  However, we can handle such functions if all return statements return a
-   --  local variable that is the only declaration in the body of the function.
-   --  In that case the call can be replaced by that local variable as is done
-   --  for other inlined calls.
+   --  However, we can handle such functions if all return statements return
+   --  a local variable that is the first declaration in the body of the
+   --  function. In that case the call can be replaced by that local
+   --  variable as is done for other inlined calls.
 
    function In_Main_Unit_Or_Subunit (E : Entity_Id) return Boolean;
    --  Return True if E is in the main unit or its spec or in a subunit