]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/ada/ChangeLog
[Ada] More precise handling of Size/Object_Size in GNATprove
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Aug 2019 08:59:42 +0000 (08:59 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Aug 2019 08:59:42 +0000 (08:59 +0000)
commit65566aa476d7f6360ca5c05040fc1d9d0039fd75
tree47025463fc6ac7c0e821c0258bc24adbab991749
parentf8ca05f5efe67ebe2e443c3500e81da35f8ef8d5
[Ada] More precise handling of Size/Object_Size in GNATprove

GNATprove does a partial expansion which did not allow getting the
most precise value for attributes Size/Object_Size. Now fixed.

There is no impact on compilation.

2019-08-12  Yannick Moy  <moy@adacore.com>

gcc/ada/

* exp_attr.adb, exp_attr.ads (Expand_Size_Attribute): New
procedure to share part of the attribute expansion with
GNATprove mode.
(Expand_N_Attribute_Reference): Extract part of the
Size/Object_Size expansion in the new procedure
Expand_Size_Attribute.
* exp_spark.adb (Expand_SPARK_N_Attribute_Reference): Expand
Size/Object_Size attributes using the new procedure
Expand_Size_Attribute.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@274290 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/exp_attr.adb
gcc/ada/exp_attr.ads
gcc/ada/exp_spark.adb