diff options
author | Hannes Domani <ssbssa@yahoo.de> | 2024-06-11 20:32:59 +0200 |
---|---|---|
committer | Hannes Domani <ssbssa@yahoo.de> | 2024-07-05 21:42:58 +0200 |
commit | cec2e207d08127bf5458a220f741020aff4148da (patch) | |
tree | 27aa7b05bf3fd2a0fcfa8ed32cbb29273fbf1c81 /gdb/m68k-linux-nat.c | |
parent | edd3f7be255e2e51ff7928cabb744af5d3d20018 (diff) | |
download | gdb-cec2e207d08127bf5458a220f741020aff4148da.zip gdb-cec2e207d08127bf5458a220f741020aff4148da.tar.gz gdb-cec2e207d08127bf5458a220f741020aff4148da.tar.bz2 |
Fix too-large or negative right shift of negative numbers
As seen in these test failures:
print -1 >> -1
warning: right shift count is negative
$N = 0
(gdb) FAIL: gdb.base/bitshift.exp: lang=c: neg lhs/rhs: print -1 >> -1
print -4 >> -2
warning: right shift count is negative
$N = 0
(gdb) FAIL: gdb.base/bitshift.exp: lang=c: neg lhs/rhs: print -4 >> -2
Fixed by restoring the logic from before the switch to gmp.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/m68k-linux-nat.c')
0 files changed, 0 insertions, 0 deletions