[Ada] Crash on imported object with deep initialization and No_Aborts
commit4b0ba35687c2df12589cb197a4186e19f40def7f
authorEd Schonberg <schonberg@adacore.com>
Mon, 1 Feb 2021 18:12:57 +0000 (1 13:12 -0500)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 7 May 2021 09:29:00 +0000 (7 05:29 -0400)
tree35a50efdbfb78d6a3ca753ff6e5b61ee18b3a3fd
parent62acd2c453976165d2a6cd48d06a7341408b7e78
[Ada] Crash on imported object with deep initialization and No_Aborts

gcc/ada/

* exp_util.adb (Remove_Init_Call): If a simple initialization
call is present, and the next statement is an initialization
block (that contains a call to a Deep_ Initialize routine),
remove the block as well, and insert the first initialization
call in it, in case it is needed for later relocation.
gcc/ada/exp_util.adb