Use intermediate integer type with proper signedness
commitcdf4576b201aa81fd853b06242b16e4215ead5a9
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 1 Jul 2021 15:57:16 +0000 (1 17:57 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Thu, 1 Jul 2021 16:13:12 +0000 (1 18:13 +0200)
tree7152f3be0aa3bb31cd5f33a43da9bbe69eaf8dd7
parentcc8453012f75dc6dbd20bf3a94c4819a2bff46db
Use intermediate integer type with proper signedness

This is a minor regression present on mainline and 11 branch, whereby the
value of the Enum_Rep attribute is always unsigned.

gcc/ada/
PR ada/101094
* exp_attr.adb (Get_Integer_Type): Return an integer type with the
same signedness as the input type.
gcc/ada/exp_attr.adb