aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/einfo.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2014-11-07 14:54:09 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2014-11-07 14:54:09 +0100
commit102743865182358d96fafb28dcd58aa4ecb1c055 (patch)
treebf9f208e9a4706f45ebee492df425edd28d13d2a /gcc/ada/einfo.adb
parent8ad1c2df7449624fa5f7d6b9186099d2dfc1b6ab (diff)
downloadgcc-102743865182358d96fafb28dcd58aa4ecb1c055.zip
gcc-102743865182358d96fafb28dcd58aa4ecb1c055.tar.gz
gcc-102743865182358d96fafb28dcd58aa4ecb1c055.tar.bz2
[multiple changes]
2014-11-07 Hristian Kirtchev <kirtchev@adacore.com> * einfo.adb (Set_Is_Checked_Ghost_Entity, Set_Is_Ignored_Ghost_Entity): Add exceptions to the assertion check. * sem_ch6.adb (Check_Conformance): Consider only source subprograms when checking for Ghost conformance. * sem_prag.adb (Analyze_Pragma): Handle the case where pragma Ghost applies to a stand alone subprogram body that acts as a compilation unit. * sem_res.adb: Minor reformatting (merge if statements). 2014-11-07 Ed Schonberg <schonberg@adacore.com> * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): Check whether underlying type is constrained before generating the object declaration for the result object of the function. From-SVN: r217226
Diffstat (limited to 'gcc/ada/einfo.adb')
-rw-r--r--gcc/ada/einfo.adb2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ada/einfo.adb b/gcc/ada/einfo.adb
index 53ba3db..f9307ab 100644
--- a/gcc/ada/einfo.adb
+++ b/gcc/ada/einfo.adb
@@ -4748,6 +4748,7 @@ package body Einfo is
or else Ekind (Id) = E_Abstract_State
or else Ekind (Id) = E_Component
or else Ekind (Id) = E_Discriminant
+ or else Ekind (Id) = E_Exception
or else Ekind (Id) = E_Package_Body
or else Ekind (Id) = E_Subprogram_Body);
Set_Flag277 (Id, V);
@@ -4942,6 +4943,7 @@ package body Einfo is
or else Ekind (Id) = E_Abstract_State
or else Ekind (Id) = E_Component
or else Ekind (Id) = E_Discriminant
+ or else Ekind (Id) = E_Exception
or else Ekind (Id) = E_Package_Body
or else Ekind (Id) = E_Subprogram_Body);
Set_Flag278 (Id, V);