This is the mail archive of the gcc-bugs@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]

[Bug fortran/29458] Spurious -Wuninitialized warning for implied do-loop counter



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


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