This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch, committed] Obvious fix in Fortran.
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Mon, 11 May 2009 08:26:55 -0700 (PDT)
- Subject: [patch, committed] Obvious fix in Fortran.
- Reply-to: sje at cup dot hp dot com
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