2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Nov 2015 10:59:25 +0000 (10:59 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Nov 2015 10:59:25 +0000 (10:59 +0000)
commitb2d32174d102e3d216087520f04a98d138b51714
treea2f2cf157298438444a07161643f881d168cd92b
parent698a7deb7e8e22f787992767de928d5f7326f50c
2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>

* einfo.ads (Overlays_Constant): Document usage for E_Constant.
* freeze.adb (Warn_Overlay): Small reformatting.
(Check_Address_Clause): Deal specifically with deferred
constants.  For a variable or a non-imported constant
overlaying a constant object and with initialization value,
either remove the initialization or issue a warning.  Fix a
couple of typos.
* sem_util.adb (Note_Possible_Modification): Overhaul the condition for
the warning on modified constants and use Find_Overlaid_Entity instead
of doing it manually.
* sem_ch13.adb (Analyze_Attribute_Definition_Clause): Compute and
set Overlays_Constant once on entry.  Do not treat the overlaid
entity as volatile.  Do not issue the warning on modified
constants here.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove
over-restrictive condition for the special treatment of deferred
constants.
<E_Variable>: Remove obsolete associated code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230229 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/einfo.ads
gcc/ada/freeze.adb
gcc/ada/gcc-interface/decl.c
gcc/ada/sem_ch13.adb
gcc/ada/sem_util.adb