[Bug ada/101094] [11/12 regression] Enum_Rep returns unsigned value for negative representation
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 1 16:13:33 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101094
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Eric Botcazou <ebotcazou@gcc.gnu.org>:
https://gcc.gnu.org/g:cdf4576b201aa81fd853b06242b16e4215ead5a9
commit r12-1961-gcdf4576b201aa81fd853b06242b16e4215ead5a9
Author: Eric Botcazou <ebotcazou@adacore.com>
Date: Thu Jul 1 17:57:16 2021 +0200
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.
More information about the Gcc-bugs
mailing list