exp_aggr.adb (Aggr_Size_OK): An array with no components can always be expanded in...
authorEd Schonberg <schonberg@adacore.com>
Thu, 16 Jun 2005 08:36:48 +0000 (10:36 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 16 Jun 2005 08:36:48 +0000 (10:36 +0200)
commit643a083902f22090fcaf22863558c79850a1d053
tree0418da4d08536fc0e807240bc6e514c2d4e5d889
parent2aab5fd53b1e58ff46df944161645943fb1bbe5c
exp_aggr.adb (Aggr_Size_OK): An array with no components can always be expanded in place.

2005-06-14  Ed Schonberg  <schonberg@adacore.com>

* exp_aggr.adb (Aggr_Size_OK): An array with no components can always
be expanded in place. The size computation does not require a
subtraction, which would raise an exception on a compiler built with
assertions when the upper bound is Integer'first.
(Flatten): For an array of composite components, take into account the
size of the components to determine whether it is safe to expand the
array into a purely positional representation.

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