[Ada] Enable removal of side-effects in component declarations
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 16 Feb 2021 13:58:46 +0000 (14:58 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 15 Jun 2021 10:19:38 +0000 (06:19 -0400)
commit2a344c79824904d3903805ff2c2113af64af8b16
tree29d45762838eebf3be4d152c43de1b2a41d47828
parent6ae60a649ee76755632adef16decdf90fb8c1ec8
[Ada] Enable removal of side-effects in component declarations

gcc/ada/

* exp_util.adb (Possible_Side_Effect_In_SPARK): Handle component
declaration just like full type and subtype declarations.
gcc/ada/exp_util.adb