minor xtensa-isa changes
Bob Wilson
bwilson@tensilica.com
Wed Mar 23 00:27:00 GMT 2005
This patch has some minor changes to the xtensa-isa files. On at least some
versions of Solaris, bsearch crashes when given a null pointer even if the count
is zero, so the patch adds guards for this condition around calls to bsearch.
If you look closely, you will see that this is currently irrelevant for binutils
since none of the pointers in question are ever null. The real motivation for
the patch is to make my life easier -- I also maintain somewhat different
versions of these files for Tensilica, and I'm trying to keep them in sync.
Thus, the patch also has some minor changes to comments and whitespace.
Committed on mainline and 2.16 branch.
include ChangeLog:
2005-03-22 Bob Wilson <bob.wilson@acm.org>
* xtensa-isa.h: Update a comment and whitespace.
bfd ChangeLog:
2005-03-22 Bob Wilson <bob.wilson@acm.org>
* xtensa-isa.c (xtensa_opcode_lookup, xtensa_state_lookup,
xtensa_sysreg_lookup_name, xtensa_interface_lookup,
xtensa_funcUnit_lookup): Skip bsearch call if count is zero.
(xtensa_opcode_decode): Rearrange code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xtensa-isa.diff
Type: text/x-patch
Size: 8988 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20050323/3c36980f/attachment.bin>
More information about the Binutils
mailing list