diff options
| author | Eric Botcazou <ebotcazou@adacore.com> | 2020-11-11 15:08:16 +0100 |
|---|---|---|
| committer | Eric Botcazou <ebotcazou@adacore.com> | 2020-11-11 15:08:16 +0100 |
| commit | 4e1a215870a4194c9ca884ef838103c094aa38c8 (patch) | |
| tree | 5d7691de83cb47420e00970c33c7748cf95a4b70 /libcpp/errors.c | |
| parent | ec1b8711945e99677fe5b135d343781bc2e106ad (diff) | |
| download | gcc-4e1a215870a4194c9ca884ef838103c094aa38c8.zip gcc-4e1a215870a4194c9ca884ef838103c094aa38c8.tar.gz gcc-4e1a215870a4194c9ca884ef838103c094aa38c8.tar.bz2 | |
Fix biased integer arithmetic
The Ada compiler uses a biased representation when a size clause reserves
fewer bits than normal either for the lower or for the upper bound.
gcc/ada/ChangeLog:
* gcc-interface/trans.c (build_binary_op_trapv): Convert operands
to the result type before doing generic overflow checking.
gcc/testsuite/ChangeLog:
* gnat.dg/bias2.adb: New test.
Diffstat (limited to 'libcpp/errors.c')
0 files changed, 0 insertions, 0 deletions
