This patch fixes a bug in the node/entity kinds that are generated by Gen_IL in sinfo/einfo.h. These numbers should be the same as the 'Pos of the corresponding enumeration literals in Node_Kind and Entity_Kind. Tested on x86_64-pc-linux-gnu, committed on trunk 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.