aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2022-10-12 12:41:49 +0200
committerMarc Poulhiès <poulhies@adacore.com>2022-11-04 14:47:31 +0100
commit4eac8834f9fb703ea04d3d3992a497182f4f86f0 (patch)
tree4fd65dd0c81f748d4bf6f1f9bfac4c71c81f6fbf /gcc/expr.cc
parent9a27e6a9f9e29adb968e4dfcd1328347b4da1df9 (diff)
downloadgcc-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