]> gcc.gnu.org Git - gcc.git/commit
ada: Small fix to Default_Initialize_Object
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 4 Feb 2024 10:16:18 +0000 (11:16 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 14 May 2024 08:19:50 +0000 (10:19 +0200)
commit324b3ffff7fa94b600d7b8d15108e2bdaf9f9ccc
tree6d5d91192f0bf5de0fdac387fa2fae69f5c84856
parent04ee1f788ceaa4c7f777ff3b9441ae076191439c
ada: Small fix to Default_Initialize_Object

Unlike what is assumed in other parts of the front-end, some objects created
with No_Initialization set on their declaration may end up being initialized
with a default value.

gcc/ada/

* exp_ch3.adb (Default_Initialize_Object): Return immediately when
either Has_Init_Expression or No_Initialization is set on the node.
Tidy up the rest of the code accordingly.
(Simple_Initialization_OK): Do not test Has_Init_Expression here.
gcc/ada/exp_ch3.adb
This page took 0.074638 seconds and 5 git commands to generate.