aboutsummaryrefslogtreecommitdiff
path: root/libobjc/objc-foreach.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2022-10-18 11:32:02 +0200
committerMarc Poulhiès <poulhies@adacore.com>2022-11-08 09:35:03 +0100
commitb2278f6b146595b3f80a072145a78877041cb8bc (patch)
tree78f57407fc72c37b5db3acf12a88855551bab6ab /libobjc/objc-foreach.c
parent10f193eb043e30741d9631999bc869d71d43264c (diff)
downloadgcc-b2278f6b146595b3f80a072145a78877041cb8bc.zip
gcc-b2278f6b146595b3f80a072145a78877041cb8bc.tar.gz
gcc-b2278f6b146595b3f80a072145a78877041cb8bc.tar.bz2
ada: Fix oversight in implementation of allocators for storage models
When the allocator is of an unconstrained array type and has an initializing expression, the copy of the initializing expression must be done separately from that of the bounds. gcc/ada/ * gcc-interface/utils2.cc (build_allocator): For unconstrained array types with a storage model and an initializing expression, copy the initialization expression separately from the bounds. In all cases with a storage model, pass the locally computed size for the store.
Diffstat (limited to 'libobjc/objc-foreach.c')
0 files changed, 0 insertions, 0 deletions