aboutsummaryrefslogtreecommitdiff
path: root/gcc/simplify-rtx.c
diff options
context:
space:
mode:
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>2016-10-07 14:47:55 +0000
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>2016-10-07 14:47:55 +0000
commit125f0e39bfde6c0eb81a5409ce09112f4b875860 (patch)
treef4220e5b34b576925905bf39e1b5dd52f9ac5603 /gcc/simplify-rtx.c
parentd7f336f846f4333c3e55cc222fba21b4bc154119 (diff)
downloadgcc-125f0e39bfde6c0eb81a5409ce09112f4b875860.zip
gcc-125f0e39bfde6c0eb81a5409ce09112f4b875860.tar.gz
gcc-125f0e39bfde6c0eb81a5409ce09112f4b875860.tar.bz2
[simplify-rtx] Zero-initialise local array in simplify_immed_subreg
* simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array before merging in bytes to pass down to real_from_target. From-SVN: r240866
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r--gcc/simplify-rtx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index 6790279..3cce25a 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -5893,14 +5893,12 @@ simplify_immed_subreg (machine_mode outermode, rtx op,
case MODE_DECIMAL_FLOAT:
{
REAL_VALUE_TYPE r;
- long tmp[MAX_BITSIZE_MODE_ANY_MODE / 32];
+ long tmp[MAX_BITSIZE_MODE_ANY_MODE / 32] = { 0 };
/* real_from_target wants its input in words affected by
FLOAT_WORDS_BIG_ENDIAN. However, we ignore this,
and use WORDS_BIG_ENDIAN instead; see the documentation
of SUBREG in rtl.texi. */
- for (i = 0; i < max_bitsize / 32; i++)
- tmp[i] = 0;
for (i = 0; i < elem_bitsize; i += value_bit)
{
int ibase;