aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2ctf.cc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2024-06-19 22:45:29 +0200
committerMarc Poulhiès <dkm@gcc.gnu.org>2024-07-02 15:20:35 +0200
commit4996c5ff650cf1703f0def8665839383e427aba2 (patch)
tree9464471c274098e4c87ca43c8bc4483408f09679 /gcc/dwarf2ctf.cc
parent78fe22892c6dc0f4bfd4e7fc0d2d43a9074c209c (diff)
downloadgcc-4996c5ff650cf1703f0def8665839383e427aba2.zip
gcc-4996c5ff650cf1703f0def8665839383e427aba2.tar.gz
gcc-4996c5ff650cf1703f0def8665839383e427aba2.tar.bz2
ada: Use static allocation for small dynamic string concatenations in more cases
This lifts the limitation of the original implementation whereby the first operand of the concatenation needs to have a length known at compiled time in order for the static allocation to be used. gcc/ada/ * exp_ch4.adb (Expand_Concatenate): In the case where an operand does not have both bounds known at compile time, use nevertheless the low bound directly if it is known at compile time. Fold the conditional expression giving the low bound of the result in the general case if the low bound of all the operands are equal.
Diffstat (limited to 'gcc/dwarf2ctf.cc')
0 files changed, 0 insertions, 0 deletions