PATCH: fix a warning in the SPU backend

Ben Elliston bje@au1.ibm.com
Tue Nov 21 04:11:00 GMT 2006


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); 



More information about the Gcc-patches mailing list