This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]