]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Adjust again the implementation of storage models
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 25 Jan 2023 14:59:19 +0000 (15:59 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 30 May 2023 07:12:17 +0000 (09:12 +0200)
commitd5518dabfa4ea310ee237dd4944970c387f27b3f
tree415b2fc19dd8b76aabcd9f15d6d07c248e82ec79
parent2d4883a1f85e5ed30060a25778aaf4ef9e328b5b
ada: Adjust again the implementation of storage models

The code generator must now be prepared to translate assignment statements
to objects allocated with a storage model and that are not initialized yet.

gcc/ada/

* gcc-interface/trans.cc (Attribute_to_gnu) <Attr_Size>: Tweak.
(gnat_to_gnu) <N_Assignment_Statement>: Declare a local variable.
For a target with a storage model, use the Actual_Designated_Subtype
to compute the size if it is present.
gcc/ada/gcc-interface/trans.cc