]> git.ipfire.org Git - thirdparty/gcc.git/commit
gensupport.c (init_rtx_reader_args_cb): Start counting code generating patterns from...
authorSteven Bosscher <steven@gcc.gnu.org>
Mon, 9 Jul 2012 08:45:12 +0000 (08:45 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Mon, 9 Jul 2012 08:45:12 +0000 (08:45 +0000)
commite714561a2fab73a2592aed0418a00b0c906c0711
tree8171a7fe230372ff8186c6f2b999f0d7b358565c
parent701649fa8939e9a3b6328afc9fca2abe4b55c312
gensupport.c (init_rtx_reader_args_cb): Start counting code generating patterns from 1 to free up 0 for CODE_FOR_nothing.

* gensupport.c (init_rtx_reader_args_cb): Start counting code
generating patterns from 1 to free up 0 for CODE_FOR_nothing.
* gencodes.c (main): Give CODE_FOR_nothing the value 0.  Add
the LAST_INSN_CODE marker at the end.
* genoutput.c (nothing): New static struct data.
(idata): Initialize to &nothing.
(idata_end): Initialize to &nothing.next.
(init_insn_for_nothing): New function to create dummy 'nothing' insn.
(main): Use it.
* genpeep.c (insn_code_number): Remove global variable.
(gen_peephole): Take it as an argument instead.
(main): Take insn_code_number from read_md_rtx.
* optabs.h: Revert r161809:
(optab_handlers): Change type of insn_code back to insn_code.
(optab_handler, widening_optab_handler, set_optab_handler,
set_widening_optab_handler, convert_optab_handler,
set_convert_optab_handler, direct_optab_handler,
set_direct_optab_handler): Remove int casts.
Revert to treating the insn_code field as "insn_code".

From-SVN: r189366
gcc/ChangeLog
gcc/gencodes.c
gcc/genoutput.c
gcc/genpeep.c
gcc/gensupport.c
gcc/optabs.h