[Ada] Code cleanup on functions inlining
authorJavier Miranda <miranda@adacore.com>
Mon, 16 Jul 2018 14:10:32 +0000 (14:10 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 16 Jul 2018 14:10:32 +0000 (14:10 +0000)
commit3ac5f7de34bdd82f3e4a8b3977749e9e1ce0a269
treec2073bacc76e24f2a8e4e10903d3bb746b4df873
parenta3b7645bffbaf3dadf1f9cfccd93c6fba3e0834d
[Ada] Code cleanup on functions inlining

This patch is preventive: it improves checks on inline functions that
return unconstrained type. It does not change the functionality of
the compiler.

2018-07-16  Javier Miranda  <miranda@adacore.com>

gcc/ada/

* inline.adb (Build_Body_To_Inline): Minor code reorganization that
ensures that calls to function Has_Single_Return() pass a decorated
tree.
(Has_Single_Return.Check_Return): Peform checks on entities (instead on
relying on their characters).

From-SVN: r262708
gcc/ada/ChangeLog
gcc/ada/inline.adb