This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: fix a warning in the SPU backend
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: andrew_pinski at playstation dot sony dot com
- Date: Tue, 21 Nov 2006 14:29:56 +1100
- Subject: PATCH: fix a warning in the SPU backend
This patch silences a warning. Committed as obvious.
2006-11-21 Ben Elliston <bje@au.ibm.com>
* config/spu/spu.c (spu_expand_vector_init): Initialise x.
Index: config/spu/spu.c
===================================================================
--- config/spu/spu.c (revision 119042)
+++ config/spu/spu.c (working copy)
@@ -4395,7 +4395,7 @@ spu_expand_vector_init (rtx target, rtx
int n_elts = GET_MODE_NUNITS (mode);
int n_var = 0;
bool all_same = true;
- rtx first, x, first_constant = NULL_RTX;
+ rtx first, x = NULL_RTX, first_constant = NULL_RTX;
int i;
first = XVECEXP (vals, 0, 0);