diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2015-05-26 12:35:14 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2015-05-26 12:35:14 +0200 |
commit | 8349613899e2e1cf996052e2dba79e0551bfe880 (patch) | |
tree | 0a6c5a1eb53a8b2f0eb4b41175119300a72c593e /gcc/ada/sem_ch7.adb | |
parent | 596b25f9a110b88d8c7e5fb1fa6cae5819b21691 (diff) | |
download | gcc-8349613899e2e1cf996052e2dba79e0551bfe880.zip gcc-8349613899e2e1cf996052e2dba79e0551bfe880.tar.gz gcc-8349613899e2e1cf996052e2dba79e0551bfe880.tar.bz2 |
[multiple changes]
2015-05-26 Doug Rupp <rupp@adacore.com>
* init.c [vxworks]: Refine previous checkin.
2015-05-26 Robert Dewar <dewar@adacore.com>
* exp_ch4.adb (Wrap_MA): New function.
(Expand_N_Op_Expon): Use Wrap_MA.
2015-05-26 Bob Duff <duff@adacore.com>
* exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
Do not use secondary stack to return limited records with
defaulted discriminants. This is an efficiency improvement.
* exp_ch6.adb, exp_dist.adb, sem_attr.adb, sem_aux.adb, sem_aux.ads,
sem_ch12.adb, sem_ch3.adb, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb,
sem_util.adb: Change the sense of Is_Indefinite_Subtype to be
Is_Definite_Subtype. This is an improvement to readability (the double
negative in "not Is_Indefinite_Subtype" was slightly confusing). Also
disallow passing non-[sub]type entities, an unnecessary and slightly
bug-prone flexibility.
From-SVN: r223679
Diffstat (limited to 'gcc/ada/sem_ch7.adb')
-rw-r--r-- | gcc/ada/sem_ch7.adb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/sem_ch7.adb b/gcc/ada/sem_ch7.adb index ada3a2b..35ff679 100644 --- a/gcc/ada/sem_ch7.adb +++ b/gcc/ada/sem_ch7.adb @@ -2905,8 +2905,8 @@ package body Sem_Ch7 is -- The following test may be redundant, as this is already -- diagnosed in sem_ch3. ??? - if Is_Indefinite_Subtype (Full) - and then not Is_Indefinite_Subtype (Id) + if not Is_Definite_Subtype (Full) + and then Is_Definite_Subtype (Id) then Error_Msg_Sloc := Sloc (Parent (Id)); Error_Msg_NE |