aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-parser.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2020-04-09 11:42:22 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2020-06-16 09:07:18 -0400
commitf193b29e42bcca7b92752d98d3a38dc9df884bef (patch)
treec956536208297d7eae77b9b7a0a5e977fbc64a90 /gcc/c/c-parser.c
parentdad94b3aca12f25cd2b3f6c32b7e55d69c8c4ad6 (diff)
downloadgcc-f193b29e42bcca7b92752d98d3a38dc9df884bef.zip
gcc-f193b29e42bcca7b92752d98d3a38dc9df884bef.tar.gz
gcc-f193b29e42bcca7b92752d98d3a38dc9df884bef.tar.bz2
[Ada] Expand 'Pos and 'Val for enumeration types with standard representation
2020-06-16 Eric Botcazou <ebotcazou@adacore.com> gcc/ada/ * sinfo.ads (Conversion_OK): Document use for 'Pos and 'Val. * exp_attr.adb (Get_Integer_Type): New function returning a small integer type appropriate for an enumeration type. (Expand_N_Attribute_Reference) <Attribute_Enum_Rep>: Call it. <Attribute_Pos>: For an enumeration type with a standard representation, expand to a conversion with Conversion_OK. <Attribute_Val>: Likewise. * exp_ch4.adb (Expand_N_Type_Conversion): Do not expand when the target is an enumeration type and Conversion_OK is set.
Diffstat (limited to 'gcc/c/c-parser.c')
0 files changed, 0 insertions, 0 deletions