ubsan errors when 32-bit bfd
authorAlan Modra <amodra@gmail.com>
Fri, 18 Jun 2021 12:57:01 +0000 (22:27 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 19 Jun 2021 01:38:55 +0000 (11:08 +0930)
commit03e689aaac95da0b22f7689a2c307e8ddd99ae2c
tree3d400c00985b288b6cde2b2a356112d20bc107b8
parent43f71bc5df211f424e7dfafbdfb644cd03bfcd34
ubsan errors when 32-bit bfd

A shift count exceeding the size of the value is undefined behaviour,
and so is negating a signed LONG_MIN.

* config/tc-z80.c (signed_overflow, unsigned_overflow): Avoid UB.
gas/ChangeLog
gas/config/tc-z80.c