sem_ch6 (Analyze_Expression_Function): treat the function as Inline_Always...
authorEd Schonberg <schonberg@adacore.com>
Tue, 2 Aug 2011 15:04:46 +0000 (15:04 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 2 Aug 2011 15:04:46 +0000 (17:04 +0200)
commitd2b10647195d645708ad8cfc09fa0adf4a394224
treef56b7bc0e4d5ca310780b045799c0f003bb066b2
parentc7b9d548d3533d6b48dcdfb882e5ce424f3d53c4
sem_ch6 (Analyze_Expression_Function): treat the function as Inline_Always...

2011-08-02  Ed Schonberg  <schonberg@adacore.com>

* sem_ch6 (Analyze_Expression_Function): treat the function as
Inline_Always, and introduce a subprogram declaration for it when it is
not a completion.
* inline.adb (Add_Inlined_Body): recognize bodies that come from
expression functions, so that the back-end can determine whether they
can in fact be inlined.
* sem_util.adb (Is_Expression_Function): predicate to determine whether
a function body comes from an expression function.

From-SVN: r177173
gcc/ada/ChangeLog
gcc/ada/inline.adb
gcc/ada/sem_ch6.adb
gcc/ada/sem_util.adb
gcc/ada/sem_util.ads