aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2024-02-04 11:16:18 +0100
committerMarc Poulhiès <poulhies@adacore.com>2024-05-14 10:19:50 +0200
commit324b3ffff7fa94b600d7b8d15108e2bdaf9f9ccc (patch)
tree6d5d91192f0bf5de0fdac387fa2fae69f5c84856 /gcc/expr.cc
parent04ee1f788ceaa4c7f777ff3b9441ae076191439c (diff)
downloadgcc-324b3ffff7fa94b600d7b8d15108e2bdaf9f9ccc.zip
gcc-324b3ffff7fa94b600d7b8d15108e2bdaf9f9ccc.tar.gz
gcc-324b3ffff7fa94b600d7b8d15108e2bdaf9f9ccc.tar.bz2
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.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions