]> git.ipfire.org Git - thirdparty/gcc.git/commit
exp_aggr.adb (Safe_Component): An aggregate component that is an unchecked conversion...
authorEd Schonberg <schonber@gnat.com>
Wed, 27 Oct 2004 13:01:17 +0000 (15:01 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 27 Oct 2004 13:01:17 +0000 (15:01 +0200)
commit6f639c98660e3f370f7a9aa9ee2a31078cbf86a1
tree38f58aeaaa79459002a7d7a695dee8c1dacc789c
parent057742339839a36409a581887adc9cb529656ba4
exp_aggr.adb (Safe_Component): An aggregate component that is an unchecked conversion is safe for in-place use...

2004-10-26  Ed Schonberg  <schonberg@gnat.com>

* exp_aggr.adb (Safe_Component): An aggregate component that is an
unchecked conversion is safe for in-place use if the expression of the
conversion is safe.
(Expand_Array_Aggregate): An aggregate that initializes an allocator may
be expandable in place even if the aggregate does not come from source.
(Convert_Array_Aggr_In_Allocator): New procedure to initialize the
designated object of an allocator in place, rather than building it
first on the stack. The previous scheme forces a full copy of the array,
and may be altogether unsusable if the size of the array is too large
for stack allocation.

From-SVN: r89649
gcc/ada/exp_aggr.adb