aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sh/sh.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-02-14 09:45:31 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2017-02-14 09:45:31 +0100
commit6a8b140878bc20952391e854529721ea1e6dd546 (patch)
tree7a3c2b5173bc2da1bb9769e797dbb93251da9301 /gcc/config/sh/sh.c
parent73424a09736ea34e649dd9d86d829398b6365b3f (diff)
downloadgcc-6a8b140878bc20952391e854529721ea1e6dd546.zip
gcc-6a8b140878bc20952391e854529721ea1e6dd546.tar.gz
gcc-6a8b140878bc20952391e854529721ea1e6dd546.tar.bz2
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
Diffstat (limited to 'gcc/config/sh/sh.c')
-rw-r--r--gcc/config/sh/sh.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index f85315d..5b84b15 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -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);