]> gcc.gnu.org Git - gcc.git/commit - gcc/ada/exp_attr.adb
[Ada] Fix expansion of attribute Loop_Entry wrt value propagation
authorPiotr Trojanek <trojanek@adacore.com>
Wed, 16 Mar 2022 12:36:40 +0000 (13:36 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 16 May 2022 08:42:06 +0000 (08:42 +0000)
commit7e0c853c6f6a2987ac7616cbfdd52bb41d598bd5
treec6d072ad511e8dde4d91ec3ef7f6f0bd0e016f72
parent20652c7f22b86d3cd646ecc2227a670f81302509
[Ada] Fix expansion of attribute Loop_Entry wrt value propagation

When expanding attribute Loop_Entry we create constant object
declarations and put them just before the loop. The current values of
variables at the point of Loop_Entry attribute must not be used when
analysing the initialization expressions of these constants, because
they might be different from the values at the loop entry itself.

gcc/ada/

* exp_attr.adb (Expand_Loop_Entry_Attribute): Disable value
propagation when analysing the constant that holds the
Loop_Entry prefix value.
gcc/ada/exp_attr.adb
This page took 0.062379 seconds and 5 git commands to generate.