aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYannick Moy <moy@adacore.com>2018-07-16 14:10:22 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2018-07-16 14:10:22 +0000
commitc4ea29786f9b6e63c47daddfb6bff5b690e5f555 (patch)
treed354be408550417bf1d9e2aaaacce10ea0e24704
parent3e752e1fc77a786fd144dac1dc4833af87c3efe7 (diff)
downloadgcc-c4ea29786f9b6e63c47daddfb6bff5b690e5f555.zip
gcc-c4ea29786f9b6e63c47daddfb6bff5b690e5f555.tar.gz
gcc-c4ea29786f9b6e63c47daddfb6bff5b690e5f555.tar.bz2
[Ada] Inline: rewrap comment
2018-07-16 Yannick Moy <moy@adacore.com> gcc/ada/ * inline.adb (Has_Single_Return): Rewrap comment. From-SVN: r262706
-rw-r--r--gcc/ada/ChangeLog4
-rw-r--r--gcc/ada/inline.adb8
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index 9831456..d041f56 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -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.
diff --git a/gcc/ada/inline.adb b/gcc/ada/inline.adb
index 23de7a7..bc01ffc5 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