diff options
author | Markus Trippelsdorf <trippels@gcc.gnu.org> | 2017-03-28 05:47:13 +0000 |
---|---|---|
committer | Markus Trippelsdorf <trippels@gcc.gnu.org> | 2017-03-28 05:47:13 +0000 |
commit | a292245ee8f4735d28b6cba7a614999bc81731f2 (patch) | |
tree | 795620b75ecfc1d63df5d5b3276af74fc303c845 /gcc | |
parent | 4dbf1eeeb6d6584cd4e674e2b8aa6cb0ac6147ed (diff) | |
download | gcc-a292245ee8f4735d28b6cba7a614999bc81731f2.zip gcc-a292245ee8f4735d28b6cba7a614999bc81731f2.tar.gz gcc-a292245ee8f4735d28b6cba7a614999bc81731f2.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/tree.c | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1830d71..062afce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,10 @@ -017-03-27 Jeff Law <law@redhat.com> +2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de> - PR tree-optimization/880216 + * tree.c (add_expr): Avoid name lookup warning. + +2017-03-27 Jeff Law <law@redhat.com> + + PR tree-optimization/80216 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in function name. Limit recursion depth. (record_temporary_equivalences): Corresponding changes. @@ -7866,7 +7866,7 @@ add_expr (const_tree t, inchash::hash &hstate, unsigned int flags) return; } case TREE_VEC: - for (int i = 0; i < TREE_VEC_LENGTH (t); ++i) + for (i = 0; i < TREE_VEC_LENGTH (t); ++i) inchash::add_expr (TREE_VEC_ELT (t, i), hstate, flags); return; case FUNCTION_DECL: |