]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Restrict previous change made to expansion of allocators
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 16 Dec 2024 07:59:26 +0000 (08:59 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 7 Jan 2025 12:33:31 +0000 (13:33 +0100)
commitbd1df4e8f6cef63934640480b67b92494a735737
tree09c70bb57882c9e6751dd54143612896ef9da0ea
parent25b380dc63cc7202ed1c7f2048994c3820a96fcd
ada: Restrict previous change made to expansion of allocators

There is no need to build a cleanup if exceptions cannot be propagated.

gcc/ada/ChangeLog:

* exp_ch4.adb (Expand_Allocator_Expression): Do not build a cleanup
if restriction No_Exception_Propagation is active.
* exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Likewise.
gcc/ada/exp_ch4.adb
gcc/ada/exp_ch6.adb