re PR target/79462 (sh: Stack smashing detected when building __ashrdi3 in libgcc)

PR target/79462
	* config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].

From-SVN: r245421
This commit is contained in:
Jakub Jelinek 2017-02-14 09:45:31 +01:00 committed by Jakub Jelinek
parent 73424a0973
commit 6a8b140878
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2017-02-14 Jakub Jelinek <jakub@redhat.com>
PR target/79462
* config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
PR tree-optimization/79408
* tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.

View file

@ -2152,7 +2152,6 @@ expand_cbranchdi4 (rtx *operands, enum rtx_code comparison)
}
operands[1] = op1h;
operands[2] = op2h;
operands[4] = NULL_RTX;
if (msw_taken != LAST_AND_UNUSED_RTX_CODE)
expand_cbranchsi4 (operands, msw_taken, msw_taken_prob);