aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/adaint.c
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2023-10-03 21:33:32 +0200
committerMarc Poulhiès <poulhies@adacore.com>2023-11-07 10:15:02 +0100
commitaeca5b9554d816a8ef8afd0f6cd99250a0a67979 (patch)
treedf41e49296cda29b27472ff11b18132ab3e14e87 /gcc/ada/adaint.c
parent9eb5deb42b1dffe030d447913191a615bba90284 (diff)
downloadgcc-aeca5b9554d816a8ef8afd0f6cd99250a0a67979.zip
gcc-aeca5b9554d816a8ef8afd0f6cd99250a0a67979.tar.gz
gcc-aeca5b9554d816a8ef8afd0f6cd99250a0a67979.tar.bz2
ada: Avoid extra conversion in expansion of packed array assignments
Expansion of assignments to packed array objects with string literals on the right-hand side, created an unnecessary conversion, i.e.: ... := component_type (declare temp : component_type := "string_literal"; begin temp) Now the expansion omits the outer type conversion. Cleanup; behavior is unaffected. gcc/ada/ * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Simplify handling of assignments with string literals.
Diffstat (limited to 'gcc/ada/adaint.c')
0 files changed, 0 insertions, 0 deletions