diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2022-10-12 12:41:49 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2022-11-04 14:47:31 +0100 |
commit | 4eac8834f9fb703ea04d3d3992a497182f4f86f0 (patch) | |
tree | 4fd65dd0c81f748d4bf6f1f9bfac4c71c81f6fbf /gcc/expr.cc | |
parent | 9a27e6a9f9e29adb968e4dfcd1328347b4da1df9 (diff) | |
download | gcc-4eac8834f9fb703ea04d3d3992a497182f4f86f0.zip gcc-4eac8834f9fb703ea04d3d3992a497182f4f86f0.tar.gz gcc-4eac8834f9fb703ea04d3d3992a497182f4f86f0.tar.bz2 |
ada: Fix couple of issues with arrays indexed by enumeration type
The first one is that Remove_Warning_Messages reinstates the Original_Node
of an N_Raise_Constraint_Error node in the tree for no clear reasons, and
the Original_Node may contain constructs whose expansion has been stopped
when the Constraint_Error was asserted, eventually causing gigi to stop.
The second one is that a path in Build_Array_Aggr_Code.Gen_Loop does not
copy the loop bounds, unlike other paths, thus triggering a sharing issue.
gcc/ada/
* errout.adb (Remove_Warning_Messages.Check_For_Warning): Do not
reinstate the Original_Node in the tree.
* exp_aggr.adb (Build_Array_Aggr_Code.Gen_Loop): Copy the bounds
on all paths.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions