sem_ch12.ads (Need_Subprogram_Instance_Body): new function...
authorArnaud Charlet <charlet@gcc.gnu.org>
Fri, 1 Aug 2008 08:19:04 +0000 (10:19 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 1 Aug 2008 08:19:04 +0000 (10:19 +0200)
commitcfb02ad18bf4064d5358fe9b4c3e9d07b373332c
tree8e7e212796d4641afaa9556f59d0e02b0395234a
parent47ad7893fbf784f230dec09403f7862db6607198
sem_ch12.ads (Need_Subprogram_Instance_Body): new function...

2008-08-01  Ed Schonberg  <schonberg@adacore.com>

* sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
a pending instantiation for the body of a subprogram that is to be
inlined.

* sem_ch12.adb:
(Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.

* sem_prag.adb (Make_Inline): If the pragma applies to an instance,
create a pending instance for its body, so that calls to the subprogram
can be inlined by the back-end.

From-SVN: r138480
gcc/ada/ChangeLog
gcc/ada/sem_ch12.adb
gcc/ada/sem_ch12.ads
gcc/ada/sem_prag.adb