On 08/20/2015 11:28 AM, Claudiu Zissulescu wrote:
Hi Jeff,
In the gencodes.c:89, it explicitly decrements by one the return
value of get_num_insn_codes(). While for the get_num_insn_codes is
stated this:
/* Return the number of possible INSN_CODEs. Only meaningful once the
whole file has been processed. */
I can provide an example for the ARC port where it crashes due to
LAST_INSN_CODE issue. Probably it can be reproduced with other more
popular port like ARM.
Passing along a test, even for the ARC is useful.
This is something Richard recently changed, it's probably just an
oversight on his part. I believe he's in the UK and may be offline for
the day.
jeff