]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/ada/sem_ch13.adb
2016-06-22 Hristian Kirtchev <kirtchev@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Jun 2016 10:05:04 +0000 (10:05 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Jun 2016 10:05:04 +0000 (10:05 +0000)
commit514a555583e7d0dc3cd1ff64f7a4c0ad1f112130
tree44bc8267c9412d726ac51245ec3bb2935c5baca3
parent7db3380336822edb4698120ddff7d6b03d71f894
2016-06-22  Hristian Kirtchev  <kirtchev@adacore.com>

* lib-xref-spark_specific.adb, a-cuprqu.ads, sem_ch6.adb: Minor
reformatting.

2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>

* sem_util.ads (Address_Value): Declare new function.
* sem_util.adb (Address_Value): New function extracted
unmodified from Apply_Address_Clause_Check, which returns the
underlying value of the expression of an address clause.
* checks.adb (Compile_Time_Bad_Alignment): Delete.
(Apply_Address_Clause_Check): Call Address_Value on
the expression.  Do not issue the main warning here and
issue the secondary warning only when the value of the
expression is not known at compile time.
* sem_ch13.adb (Address_Clause_Check_Record): Add A component and
adjust the description.
(Analyze_Attribute_Definition_Clause): In the case
of an address, move up the code creating an entry in the table of
address clauses.  Also create an entry for an absolute address.
(Validate_Address_Clauses): Issue the warning for absolute
addresses here too.  Tweak condition associated with overlays
for consistency.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237688 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/a-cuprqu.ads
gcc/ada/checks.adb
gcc/ada/lib-xref-spark_specific.adb
gcc/ada/sem_ch13.adb
gcc/ada/sem_ch6.adb
gcc/ada/sem_util.adb
gcc/ada/sem_util.ads