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: "Segher Boessenkool" <segher at kernel dot crashing dot org>
- To: "BELBACHIR Selim" <selim dot belbachir at fr dot thalesgroup dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Sat, 11 Jan 2014 03:17:03 +0100 (CET)
- 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>
> I think I found a bug in gcc 4.7.3 in gcc/caller-save.c at line 158 :
>
> gcc_assert (cached_reg_save_code[reg][mode]);
>
> should be :
>
> gcc_assert (cached_reg_save_code[reg][mode] != -1);
>
> because cached_reg_save_code contains INSN_CODES that can be equal to 0
This is PR55036.
Segher