Commit 798d7f42 by Matthew Fortune Committed by Matthew Fortune

MIPS: Prevent buffer overrun in uninitialised variable fix

gcc/
	* config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
	uninitialized variable warning to avoid buffer overrun.

From-SVN: r247022
parent 1b36f603
2017-04-20 Matthew Fortune <matthew.fortune@imgtec.com>
* config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
uninitialized variable warning to avoid buffer overrun.
2017-04-20 Alexander Monakov <amonakov@ispras.ru>
PR other/71250
......
......@@ -21358,7 +21358,7 @@ mips_expand_vec_perm_const (rtx operands[4])
/* This is overly conservative, but ensures we don't get an
uninitialized warning on ORIG_PERM. */
memset (&orig_perm[nelt], 0, MAX_VECT_LEN);
memset (orig_perm, 0, MAX_VECT_LEN);
for (i = which = 0; i < nelt; ++i)
{
rtx e = XVECEXP (sel, 0, i);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment