This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29458] Spurious -Wuninitialized warning for implied do-loop counter
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2007 23:01:51 -0000
- Subject: [Bug fortran/29458] Spurious -Wuninitialized warning for implied do-loop counter
- References: <bug-29458-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-01-31 23:01 -------
This is fixed by the following patch:
Index: trans-array.c
===================================================================
--- trans-array.c (revision 121280)
+++ trans-array.c (working copy)
@@ -1280,6 +1280,7 @@
gfc_conv_expr (&se, c->iterator->var);
gfc_add_block_to_block (pblock, &se.pre);
loopvar = se.expr;
+ TREE_NO_WARNING(loopvar) = 1;
/* Make a temporary, store the current value in that
and return it, once the loop is done. */
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-10-13 14:03:28 |2007-01-31 23:01:50
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29458