This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: wrong assertion in caller-save.c
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Richard Sandiford <rdsandiford at googlemail dot com>
- Cc: gcc at gcc dot gnu dot org, Jeff Law <law at redhat dot com>, BELBACHIR Selim <selim dot belbachir at fr dot thalesgroup dot com>
- Date: Sat, 11 Jan 2014 11:11:20 +0100
- Subject: Re: wrong assertion in caller-save.c
- Authentication-results: sourceware.org; auth=none
- References: <12235_1389377088_52D03640_12235_1644_1_9C88BF562A27AA41B242B2780441926E210D2857DA at THSONEA01CMS05P dot one dot grp> <52D06A45 dot 90504 at redhat dot com> <87ob3iq1g4 dot fsf at talisman dot default>
> FWIW, it was fixed in 4.8 and later by making CODE_FOR_nothing be 0
> and starting the real instructions at 1.
Indeed, thanks for the heads-up:
2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
* 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 ¬hing.
(idata_end): Initialize to ¬hing.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".
--
Eric Botcazou