diff options
author | Sergey Belyashov <sergey.belyashov@gmail.com> | 2021-05-20 16:14:10 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-05-20 16:14:10 +0100 |
commit | 9a01ec4c0368048fb5ea1ba1b3af9afbd651b529 (patch) | |
tree | 03d54f33ce20121595129c3b59e1c9ef7aa0e238 /gas/ChangeLog | |
parent | ed3130b74053766de776a0d29176610c1bbbdc31 (diff) | |
download | gdb-9a01ec4c0368048fb5ea1ba1b3af9afbd651b529.zip gdb-9a01ec4c0368048fb5ea1ba1b3af9afbd651b529.tar.gz gdb-9a01ec4c0368048fb5ea1ba1b3af9afbd651b529.tar.bz2 |
Fix overflow detection in the Z80 assembler.
* config/tc-z80.c (emit_data_val): Warn on constant overflow.
(signed_overflow): New function.
(unsigned_overflow): New function.
(is_overflow): Use new functions.
(md_apply_fix): Use signed_overflow.
* testsuite/gas/z80/ez80_adl_suf.d: Fix test.
* testsuite/gas/z80/ez80_isuf.s: Likewise.
* testsuite/gas/z80/ez80_z80_suf.d: Likewise.
Diffstat (limited to 'gas/ChangeLog')
-rw-r--r-- | gas/ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 75eb501..b9a59b6 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,14 @@ +2021-05-20 Sergey Belyashov <sergey.belyashov@gmail.com> + + * config/tc-z80.c (emit_data_val): Warn on constant overflow. + (signed_overflow): New function. + (unsigned_overflow): New function. + (is_overflow): Use new functions. + (md_apply_fix): Use signed_overflow. + * testsuite/gas/z80/ez80_adl_suf.d: Fix test. + * testsuite/gas/z80/ez80_isuf.s: Likewise. + * testsuite/gas/z80/ez80_z80_suf.d: Likewise. + 2021-05-20 Nicolas Boulenguez <nicolas@debian.org> PR 27888 |