Avoid name lookup warning
authorMarkus Trippelsdorf <trippels@gcc.gnu.org>
Tue, 28 Mar 2017 05:47:13 +0000 (05:47 +0000)
committerMarkus Trippelsdorf <trippels@gcc.gnu.org>
Tue, 28 Mar 2017 05:47:13 +0000 (05:47 +0000)
commita292245ee8f4735d28b6cba7a614999bc81731f2
tree795620b75ecfc1d63df5d5b3276af74fc303c845
parent4dbf1eeeb6d6584cd4e674e2b8aa6cb0ac6147ed
Avoid name lookup warning

/home/markus/gcc/gcc/tree.c: In function ‘void inchash::add_expr(const_tree, inchash::hash&, unsigned int)’:
/home/markus/gcc/gcc/tree.c:8013:11: warning: name lookup of ‘i’ changed
      for (i = TREE_OPERAND_LENGTH (t) - 1; i >= 0; --i)
           ^
/home/markus/gcc/gcc/tree.c:7773:7: warning:   matches this ‘i’ under ISO standard rules
   int i;
       ^
/home/markus/gcc/gcc/tree.c:7869:16: warning:   matches this ‘i’ under old rules
       for (int i = 0; i < TREE_VEC_LENGTH (t); ++i)
                ^

From-SVN: r246519
gcc/ChangeLog
gcc/tree.c