diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-11 09:11:57 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-11 09:11:57 +0000 |
commit | ad8b87c8787bff3c56ad6372e272e6ec1fce9260 (patch) | |
tree | 15c23728dd5f1c1cb5845f7dcdc1c8b0738de698 /gcc/ada/lib-xref.adb | |
parent | 047bb428d82326796e9df4d032eb3aa5e7dbee95 (diff) | |
download | gcc-ad8b87c8787bff3c56ad6372e272e6ec1fce9260.tar.gz |
2010-10-11 Bob Duff <duff@adacore.com>
* sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
(Ada_Version_Type).
2010-10-11 Javier Miranda <miranda@adacore.com>
* exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
dereference then do not exclude dereferences of access-to-constant
types to handle them as constant view of variables (and hence remove
side effects when required).
* sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
are properly handled.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165282 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/lib-xref.adb')
-rw-r--r-- | gcc/ada/lib-xref.adb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/lib-xref.adb b/gcc/ada/lib-xref.adb index f149b2e865c..0fd2f35a5e2 100644 --- a/gcc/ada/lib-xref.adb +++ b/gcc/ada/lib-xref.adb @@ -480,7 +480,7 @@ package body Lib.Xref is if Comes_From_Source (N) and then Is_Ada_2012_Only (E) - and then Ada_Version < Ada_12 + and then Ada_Version < Ada_2012 and then Warn_On_Ada_2012_Compatibility and then (Typ = 'm' or else Typ = 'r') then |