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, committed] Obvious fix in Fortran.


My bootstrap was broken with:

/src/trunk/gcc/fortran/resolve.c: In function 'check_host_association':
/src/trunk/gcc/fortran/resolve.c:4356: error: 'tail' may be used uninitialized in this function
make[3]: *** [fortran/resolve.o] Error 1

So I checked in this obvious patch to fix it.  I don't know why this
just showed up, it doesn't look like resolve.c was changed recently
so it must have been a change in GCC's unitialized variable checking method.

Steve Ellcey
sje@cup.hp.com



2009-05-11  Steve Ellcey  <sje@cup.hp.com>

	* resolve.c (check_host_association): Initialize tail.


Index: resolve.c
===================================================================
--- resolve.c	(revision 147380)
+++ resolve.c	(working copy)
@@ -4353,7 +4353,7 @@ check_host_association (gfc_expr *e)
   gfc_symtree *st;
   int n;
   gfc_ref *ref;
-  gfc_actual_arglist *arg, *tail;
+  gfc_actual_arglist *arg, *tail = NULL;
   bool retval = e->expr_type == EXPR_FUNCTION;
 
   /*  If the expression is the result of substitution in


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