re PR target/79462 (sh: Stack smashing detected when building __ashrdi3 in libgcc)
authorJakub Jelinek <jakub@redhat.com>
Tue, 14 Feb 2017 08:45:31 +0000 (09:45 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 14 Feb 2017 08:45:31 +0000 (09:45 +0100)
PR target/79462
* config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].

From-SVN: r245421

gcc/ChangeLog
gcc/config/sh/sh.c

index c6adafff2a614c5dd1289e73c9776a9263855c23..8abe8c592ce1be05902f4d6977f0f3021c4330e5 100644 (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.
index f85315db3ae957fed194a84fe50d6c8ae4fbab77..5b84b15e7babfcd6e8594a0da96b8389ae3e6858 100644 (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);