diff options
author | Robert Dewar <dewar@adacore.com> | 2010-10-21 10:43:12 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2010-10-21 12:43:12 +0200 |
commit | 48f91b442f810e5bae8cd52bf2f84e9c0f43b948 (patch) | |
tree | 5512eeac4733915f94ed802b8a68aba0956a37c7 /gcc/ada/exp_ch5.adb | |
parent | c9a410f028b175a6d585bfe103d64a880140148a (diff) | |
download | gcc-48f91b442f810e5bae8cd52bf2f84e9c0f43b948.tar.gz |
einfo.ads, einfo.adb: Add handling of predicates.
2010-10-21 Robert Dewar <dewar@adacore.com>
* einfo.ads, einfo.adb: Add handling of predicates.
Rework handling of invariants.
* exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_ch6.adb: Minor changes to
handing of invariants.
* par-prag.adb: Add dummy entry for pragma Predicate
* sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
Predicate aspects.
* sem_prag.adb: Add implementation of pragma Predicate.
* snames.ads-tmpl: Add entries for pragma Predicate.
2010-10-21 Robert Dewar <dewar@adacore.com>
* elists.adb: Minor reformatting.
From-SVN: r165766
Diffstat (limited to 'gcc/ada/exp_ch5.adb')
-rw-r--r-- | gcc/ada/exp_ch5.adb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/ada/exp_ch5.adb b/gcc/ada/exp_ch5.adb index 42fcf151c69..6694fdfbfd4 100644 --- a/gcc/ada/exp_ch5.adb +++ b/gcc/ada/exp_ch5.adb @@ -1626,6 +1626,10 @@ package body Exp_Ch5 is Generate_Range_Check (Rhs, Typ, CE_Range_Check_Failed); end if; + -- Generate predicate check if required + + Apply_Predicate_Check (Rhs, Typ); + -- Check for a special case where a high level transformation is -- required. If we have either of: |