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]

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


On May 18, 2009, Alexandre Oliva <aoliva@redhat.com> wrote:

> 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.

Erhm...  I jumped the gun on this one, the patch I posted apparently
hadn't got into my last test cycle.

Here's a correct version of the patch.

for  gcc/ChangeLog.vta
from  Alexandre Oliva  <aoliva@redhat.com>

	* 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 = { SCALAR, 0, 0 };
   tree tmpvar = NULL_TREE;
   unsigned int k;
 

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   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]