]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Do not raise exceptions from Exp_Aggr.Packed_Array_Aggregate_Handled
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 20 Dec 2024 15:49:50 +0000 (16:49 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 7 Jan 2025 12:33:35 +0000 (13:33 +0100)
commit0f1bc0d5c0b7b77f3ec0704f9f999cceef13adea
tree58591efa29ed18083d9b840136fef9c697cc67de
parent360cd3542e9d9bd6e101a9fc6509f8f6013664cc
ada: Do not raise exceptions from Exp_Aggr.Packed_Array_Aggregate_Handled

An exception is now raised during bootstrap and this causes compatibility
issues with older compilers.

gcc/ada/ChangeLog:

* exp_aggr.adb (Packed_Array_Aggregate_Handled): Remove declaration
and handler for Not_Handled local exception. Check the return value
of Get_Component_Val instead.
(Get_Component_Val): Return No_Uint instead of raising Not_Handled.
gcc/ada/exp_aggr.adb