]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Fix bug in node/entity kind numbers in sinfo/einfo.h
authorBob Duff <duff@adacore.com>
Wed, 7 Apr 2021 11:52:07 +0000 (07:52 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 29 Jun 2021 14:23:45 +0000 (14:23 +0000)
commit997d3894fbd931e4dfa210a809175d7c2dc73b4b
tree0951d51e40da6fa3a8b688fa61821c4bfc31e973
parent10215ba9d7848b858d3c2103807222675028225a
[Ada] Fix bug in node/entity kind numbers in sinfo/einfo.h

gcc/ada/

* gen_il-gen.adb (Put_C_Type_And_Subtypes): Put the correct
numbers.
* gen_il-internals.ads, gen_il-internals.adb: (Pos): Remove this
function. It was assuming that the order of the enumeration
literals in Type_Enum is the same as the order of the generated
types Node_Kind and Entity_Kind, which is not true.
gcc/ada/gen_il-gen.adb
gcc/ada/gen_il-internals.adb
gcc/ada/gen_il-internals.ads