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]

[vta, trunk?] enable bootstrap with BUILD_CONFIG=bootstrap-O3

Bootstrapping on x86-linux-gnu (not sure 32 or 64 any more, probably
both) fails because of -Werror on these two files, because functions get
inlined and expose paths in which the compiler can't determine that
variables or their fields are initialized before they're referenced.

I'm installing this in the branch.  Is this ok for the trunk?

for  gcc/ChangeLog.vta
from  Alexandre Oliva  <>

	* tree-ssa-structalias.c (handle_lhs_call): Initialize tmp.
	* fortran/module.c (mio_f2k_derived): Initialize cur.

Index: gcc/fortran/module.c
--- gcc/fortran/module.c.orig	2009-05-12 03:45:55.000000000 -0300
+++ gcc/fortran/module.c	2009-05-15 23:43:21.000000000 -0300
@@ -3340,7 +3340,7 @@ mio_f2k_derived (gfc_namespace *f2k)
       f2k->finalizers = NULL;
       while (peek_atom () != ATOM_RPAREN)
-	  gfc_finalizer *cur;
+	  gfc_finalizer *cur = NULL;
 	  mio_finalizer (&cur);
 	  cur->next = f2k->finalizers;
 	  f2k->finalizers = cur;
Index: gcc/tree-ssa-structalias.c
--- gcc/tree-ssa-structalias.c.orig	2009-05-12 03:48:03.000000000 -0300
+++ gcc/tree-ssa-structalias.c	2009-05-15 23:42:50.000000000 -0300
@@ -3425,7 +3425,7 @@ handle_lhs_call (tree lhs, int flags, VE
 static void
 handle_const_call (gimple stmt, VEC(ce_s, heap) **results)
-  struct constraint_expr rhsc, tmpc;
+  struct constraint_expr rhsc, tmpc = { NULL, 0, 0 };
   tree tmpvar = NULL_TREE;
   unsigned int k;

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]