[PATCH][arm] build fix for gcc-6 -Werror=shift-negative-value
Szabolcs Nagy
szabolcs.nagy@arm.com
Mon Jun 15 11:48:00 GMT 2015
binutils does not compile here when building it for aarch64 or arm
targets with gcc trunk native compiler:
opcodes/arm-dis.c: In function 'print_insn_coprocessor':
opcodes/arm-dis.c:3331:20: error: left shift of negative value [-Werror=shift-negative-value]
imm |= (-1 << 7);
^
The fix assumes 2's complement signed int representation on the host.
Is this OK?
2015-06-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
* opcodes/arm-dis.c (print_insn_coprocessor): Avoid negative shift.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: negshift.diff
Type: text/x-patch
Size: 468 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150615/d1d4b3cb/attachment.bin>
More information about the Binutils
mailing list