aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2022-12-15 14:47:44 +0100
committerMarc Poulhiès <poulhies@adacore.com>2023-01-05 15:29:58 +0100
commit8313c5f600fe935d00b4ff52539e01df67af928d (patch)
treee4fbbea2d4034722937a195c655656c8ea7b44c4 /gcc/rust
parent0776fec1557f60e256cd18a5456ee5ad04cf4262 (diff)
downloadgcc-8313c5f600fe935d00b4ff52539e01df67af928d.zip
gcc-8313c5f600fe935d00b4ff52539e01df67af928d.tar.gz
gcc-8313c5f600fe935d00b4ff52539e01df67af928d.tar.bz2
ada: Revert to constrained allocation for string concatenation
Using an unconstrained allocation is less efficient in the general case. gcc/ada/ * exp_ch3.adb (Expand_N_Object_Declaration): New local variable used throughout instead of testing Is_Special_Return_Object every time. Do not rename an OK_To_Rename object for a special return object. * exp_ch4.adb (Expand_Concatenate): Revert to constrained allocation if the result is allocated on the secondary stack.
Diffstat (limited to 'gcc/rust')
0 files changed, 0 insertions, 0 deletions