sem_ch3.adb, [...]: Protect call to Current_Subprogram which might be costly when...
authorYannick Moy <moy@adacore.com>
Tue, 2 Aug 2011 15:28:12 +0000 (15:28 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 2 Aug 2011 15:28:12 +0000 (17:28 +0200)
commit83f331504ee98ff8a88d47bb91ea0feafd3f97b2
tree71a15c33ec39eead3557d27d7b766e39978f5307
parent7b98672ff9bc9b1096b604e9f900eb1692ea8bd3
sem_ch3.adb, [...]: Protect call to Current_Subprogram which might be costly when repeated.

2011-08-02  Yannick Moy  <moy@adacore.com>

* sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb, sem_util.ads,
sem_res.adb, sem_ch2.adb, sem_ch4.adb, sem_ch6.adb,
sem_ch11.adb: Protect call to Current_Subprogram which might be costly
when repeated. Rename Current_Subprogram_Is_Not_In_ALFA into
Mark_Non_ALFA_Subprogram_Body.
Split body of Mark_Non_ALFA_Subprogram_Body to get body small and
inlined.

From-SVN: r177182
gcc/ada/ChangeLog
gcc/ada/sem_ch11.adb
gcc/ada/sem_ch2.adb
gcc/ada/sem_ch3.adb
gcc/ada/sem_ch4.adb
gcc/ada/sem_ch5.adb
gcc/ada/sem_ch6.adb
gcc/ada/sem_ch9.adb
gcc/ada/sem_res.adb
gcc/ada/sem_util.adb
gcc/ada/sem_util.ads