From c4ea29786f9b6e63c47daddfb6bff5b690e5f555 Mon Sep 17 00:00:00 2001 From: Yannick Moy Date: Mon, 16 Jul 2018 14:10:22 +0000 Subject: [PATCH] [Ada] Inline: rewrap comment 2018-07-16 Yannick Moy gcc/ada/ * inline.adb (Has_Single_Return): Rewrap comment. From-SVN: r262706 --- gcc/ada/ChangeLog | 4 ++++ gcc/ada/inline.adb | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 98314567ea8..d041f562043 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 23de7a73651..bc01ffc58ce 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 -- 2.30.2