gas: microblaze: fix shift overflow
authorMike Frysinger <vapier@gentoo.org>
Sun, 15 Nov 2015 07:46:03 +0000 (02:46 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 17 Nov 2015 04:21:39 +0000 (23:21 -0500)
commit58a345fe1f0407cb2743da0b295ef28cc7f23c72
treee0332020f5faca0ca9660880e0247c01a1859d28
parent7ffdbc4f3fe7aaa8862a9189bc625cbbb05ff9a4
gas: microblaze: fix shift overflow

This code tries to shift an integer 31 bits which triggers a werror:
gas/config/tc-microblaze.c:742:21: error: integer overflow in expression [-Werror=overflow]
  e->X_add_number |= -(1 << 31);

Cast the 1 to offsetT to match X_add_number to fix things.
gas/ChangeLog
gas/config/tc-microblaze.c