[Ada] Refine pointer support in SPARK
authorYannick Moy <moy@adacore.com>
Wed, 3 Jul 2019 08:16:01 +0000 (08:16 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Wed, 3 Jul 2019 08:16:01 +0000 (08:16 +0000)
commitf4c16c58e1a91f412eae9dd6645c165a709246cb
tree121a2199f0e146ff3c0f29fc98b31943af645ab6
parentabc856cf227c4a97ddb4697bb51ab0da8dba4d94
[Ada] Refine pointer support in SPARK

Refine the implementation of pointer support for SPARK analysis.

There is no impact on compilation.

2019-07-03  Yannick Moy  <moy@adacore.com>

gcc/ada/

* sem_spark.adb (Get_Observed_Or_Borrowed_Expr): New function to
return go through traversal function call.
(Check_Type): Consistently use underlying type.
(Get_Perm): Adapt for case of elaboration code where variables
are not declared in the environment. Remove incorrect handling
of borrow and observe.

From-SVN: r272981
gcc/ada/ChangeLog
gcc/ada/sem_spark.adb