aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/fe.h
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2023-12-15 16:59:43 -0500
committerMarc Poulhiès <poulhies@adacore.com>2024-05-06 11:11:26 +0200
commit4629cd34506416d05cd9ab56879f69b44fe65d2b (patch)
tree5e214195bfb80f5c5d015d181787cb27289377aa /gcc/ada/fe.h
parent6be1fe296e58128b994a1b877a45b459a2dadf06 (diff)
downloadgcc-4629cd34506416d05cd9ab56879f69b44fe65d2b.zip
gcc-4629cd34506416d05cd9ab56879f69b44fe65d2b.tar.gz
gcc-4629cd34506416d05cd9ab56879f69b44fe65d2b.tar.bz2
ada: Fix memory leak in 'Image
Fix memory leak in 'Image by managing the secondary stack in scopes that call the new Ada 2020 'Image, which calls 'Put_Image and then Get, which returns on the secondary stack. gcc/ada/ * exp_put_image.adb (Build_Image_Call): Call Set_Uses_Sec_Stack on the current scope. We don't do this at all call sites, because there are three; better to do it here.
Diffstat (limited to 'gcc/ada/fe.h')
0 files changed, 0 insertions, 0 deletions