aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/frontend.adb
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2020-01-09 16:25:39 +0100
committerPierre-Marie de Rodat <derodat@adacore.com>2020-06-03 06:01:37 -0400
commit79e267f9fb23da4e9553a97dc45ea757545cf521 (patch)
tree4db89173cb6248ef10d3e68f46313581d9f95d13 /gcc/ada/frontend.adb
parent075116992690d6f29530a0a7f08cf2f7d5652a93 (diff)
downloadgcc-79e267f9fb23da4e9553a97dc45ea757545cf521.zip
gcc-79e267f9fb23da4e9553a97dc45ea757545cf521.tar.gz
gcc-79e267f9fb23da4e9553a97dc45ea757545cf521.tar.bz2
[Ada] Improve 'Val implementation for some enumeration types
2020-06-03 Eric Botcazou <ebotcazou@adacore.com> gcc/ada/ * einfo.ads (Enum_Pos_To_Rep): Adjust description. * exp_attr.adb (Expand_N_Attribute_Reference) <Pred>: Reimplement in the case of an enumeration type with non-standard but contiguous representation. <Succ>: Likewise. <Val>: Likewise. * exp_ch3.adb (Expand_Freeze_Enumeration_Type): Count the literals in the first loop. If the representation is contiguous, just build the index type of the array type and set Enum_Pos_To_Rep to it.
Diffstat (limited to 'gcc/ada/frontend.adb')
0 files changed, 0 insertions, 0 deletions