This is the mail archive of the 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]

silence warning with bootstrap-O1

GCC -O1 is not smart enough to realize that fcode is initialized in
every path towards its uses, so BUILD_CONFIG=bootstrap-O1 fails on
x86_64-linux-gnu.  This patch fixes it.  I'm checking it in as obvious.

for  gcc/ChangeLog
from  Alexandre Oliva  <>

	* config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
	bogus uninitialized warning.

Index: gcc/config/i386/i386.c
--- gcc/config/i386/i386.c.orig	2010-01-06 13:36:32.000000000 -0200
+++ gcc/config/i386/i386.c	2010-01-06 13:36:33.000000000 -0200
@@ -28886,7 +28886,7 @@ ix86_vectorize_builtin_vec_perm (tree ve
   tree itype = TREE_TYPE (vec_type);
   bool u = TYPE_UNSIGNED (itype);
   enum machine_mode vmode = TYPE_MODE (vec_type);
-  enum ix86_builtins fcode;
+  enum ix86_builtins fcode = fcode; /* Silence bogus warning.  */
   bool ok = TARGET_SSE2;
   switch (vmode)
Alexandre Oliva, freedom fighter
You must be the change you wish to see in the world. -- Gandhi
Be Free! --   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer

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