sem_ch3.adb (Check_Abstract_Overriding): Code cleanup...
authorJavier Miranda <miranda@adacore.com>
Tue, 30 Aug 2011 13:50:19 +0000 (13:50 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 30 Aug 2011 13:50:19 +0000 (15:50 +0200)
commitdd54644b315aa181b563ee78ee5f48ec908632c2
treef5211562a4c22f3f636def27c991a070a3000821
parentd3ba478e3fda2b515d0dcdbdc936b65192b6f99d
sem_ch3.adb (Check_Abstract_Overriding): Code cleanup...

2011-08-30  Javier Miranda  <miranda@adacore.com>

* sem_ch3.adb (Check_Abstract_Overriding): Code cleanup: replace code
which emits an error by a call to a new routine which report the error.
* exp_ch9.adb (Build_Wrapper_Spec): Build the wrapper even if the
entity does not cover an existing interface.
* errout.ads, errout.adb (Error_Msg_PT): New routine. Used to factorize
code.
* sem_ch6.adb (Check_Conformance): Add specific error for wrappers of
protected procedures or entries whose mode is not conformant.
(Check_Synchronized_Overriding): Code cleanup: replace code which emits
an error by a call to a new routine which report the error.

From-SVN: r178306
gcc/ada/ChangeLog
gcc/ada/errout.adb
gcc/ada/errout.ads
gcc/ada/exp_ch9.adb
gcc/ada/sem_ch3.adb
gcc/ada/sem_ch6.adb