This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] invalid error reports on v850-elf target/ppc-darwin host


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

Attachment: tc-v850.c.diff
Description: Binary data







Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]