gensupport.h (get_num_insn_codes): Declare.
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 5 Aug 2015 15:44:23 +0000 (15:44 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 5 Aug 2015 15:44:23 +0000 (15:44 +0000)
commitba0ee63dfe37e08aef608039525304e919c18187
tree3bb6cba655f74f75d4e5a605da5b2ec1ef7cbeda
parentdcc74ead1e18da4a7f096ee98424452bc13706da
gensupport.h (get_num_insn_codes): Declare.

gcc/
* gensupport.h (get_num_insn_codes): Declare.
* gensupport.c (get_num_insn_codes): New function.
* genattrtab.c (optimize_attrs): Rename max_insn_code to
num_insn_codes.
(main): Likewise.  Use get_num_insn_codes.
* gencodes.c (main): Remove "last" and use get_num_insn_codes.

From-SVN: r226633
gcc/ChangeLog
gcc/genattrtab.c
gcc/gencodes.c
gcc/gensupport.c
gcc/gensupport.h