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 19, 2009, Alexandre Oliva <aoliva@redhat.com> wrote:

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

tree-ssa-structalias.c was already fixed, but fortran/module.c still
needs a patch for BUILD_CONFIG=bootstrap-O3 AKA BOOT_CFLAGS='-O3 -g' on
x86_64 or i686.

Ok for trunk?

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

	* 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;
-- 
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]