[patch] invalid error reports on v850-elf target/ppc-darwin host
Masaki Muranaka
monaka@monami-software.com
Fri Apr 25 10:37:00 GMT 2008
Hello maintainers,
As you know, it is undefined in case bit shift with negative value.
The result of (long)((1 << -1) - 1) is also undefined.
It seems it will be LONG_MAX on i386 host, and -1 on ppc.
This patch is fix assemble error caused by the behavior above.
2008-04-25 Masaki Muranaka <monaka@monami-software.com>
* config/tc-v850.c (LONG_MAX) : Define if the host doesn't
have.
(v850_insert_operand): Set LONG_MAX to max if operand->bits
== -1.
--
Masaki Muranaka
Monami Software
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tc-v850.c.diff
Type: application/octet-stream
Size: 979 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20080425/8567515b/attachment.obj>
-------------- next part --------------
More information about the Binutils
mailing list