sem_util.ads (Indexed_Component_Bit_Offset): Declare.
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 16 Jun 2016 10:19:51 +0000 (10:19 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 16 Jun 2016 10:19:51 +0000 (12:19 +0200)
commit36d3d5d3db9e70689f4eb47baf18f59d545e73ad
tree6345a720226036cb41895309c44054bab3970883
parent3455747810302e0540641aa7df9168443032ea71
sem_util.ads (Indexed_Component_Bit_Offset): Declare.

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

* sem_util.ads (Indexed_Component_Bit_Offset): Declare.
* sem_util.adb (Indexed_Component_Bit_Offset): New
function returning the offset of an indexed component.
(Has_Compatible_Alignment_Internal): Call it.
* sem_ch13.adb (Offset_Value): New function returning the offset of an
Address attribute reference from the underlying entity.
(Validate_Address_Clauses): Call it and take the offset into
account for the size warning.

From-SVN: r237511
gcc/ada/ChangeLog
gcc/ada/sem_ch13.adb
gcc/ada/sem_util.adb
gcc/ada/sem_util.ads