diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2021-04-05 19:49:56 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2021-04-05 19:52:29 +0200 |
commit | 7ebdef2076fda56cb4cffb941f6c2576f980f3b3 (patch) | |
tree | 7363fd884d965637daf1edafd9fe8bf92f4f8441 /gcc/tree-ssa-dse.c | |
parent | f1d012911bd103e9701ed378f32928a3cbcf028a (diff) | |
download | gcc-7ebdef2076fda56cb4cffb941f6c2576f980f3b3.zip gcc-7ebdef2076fda56cb4cffb941f6c2576f980f3b3.tar.gz gcc-7ebdef2076fda56cb4cffb941f6c2576f980f3b3.tar.bz2 |
Fix small regression with -fdump-ada-spec
When the enumeration constants of an enumeration type are defined by
explicit values, the binding generated by -fdump-ada-spec does not use
an enumeration type on the Ada side, because the set of allowed values
in C/C++ is larger than the set of allowed values in Ada, but instead
use an integer subtype and defines a set of explicit constants, which
used to be of this subtype but were changed to the base type at some
point. This reinstates the subtype for them.
gcc/c-family/
* c-ada-spec.c (is_simple_enum): Minor tweaks.
(dump_ada_enum_type): Add TYPE and PARENT parameters. For non-simple
enumeral types use again the type name for the enumeration constants.
(dump_ada_node): Adjust call to dump_ada_enum_type.
(dump_nested_type): Likewise.
Diffstat (limited to 'gcc/tree-ssa-dse.c')
0 files changed, 0 insertions, 0 deletions