From: Yannick Moy Date: Mon, 16 Jul 2018 14:10:22 +0000 (+0000) Subject: [Ada] Inline: rewrap comment X-Git-Tag: basepoints/gcc-10~5358 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4ea29786f9b6e63c47daddfb6bff5b690e5f555;p=thirdparty%2Fgcc.git [Ada] Inline: rewrap comment 2018-07-16 Yannick Moy gcc/ada/ * inline.adb (Has_Single_Return): Rewrap comment. From-SVN: r262706 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 98314567ea8e..d041f5620431 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2018-07-16 Yannick Moy + + * inline.adb (Has_Single_Return): Rewrap comment. + 2018-07-16 Eric Botcazou * einfo.ads: Minor tweak in comment. diff --git a/gcc/ada/inline.adb b/gcc/ada/inline.adb index 23de7a736514..bc01ffc58cea 100644 --- a/gcc/ada/inline.adb +++ b/gcc/ada/inline.adb @@ -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