Commit b51a085b by Bernd Edlinger Committed by Bernd Edlinger

cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.

2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.

From-SVN: r276590
parent 4e4791ff
2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
* cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
* genmatch.c (commutate): Rename local var.
(lower_cond): Reuse local var.
(dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
......
......@@ -648,8 +648,10 @@ symtab_node::checking_verify_symtab_nodes (void)
}
/* Walk all aliases for NODE. */
#define FOR_EACH_ALIAS(node, alias) \
for (unsigned x_i = 0; node->iterate_direct_aliases (x_i, alias); x_i++)
#define FOR_EACH_ALIAS(NODE, ALIAS) \
for (unsigned ALIAS##_iter_ = 0; \
(NODE)->iterate_direct_aliases (ALIAS##_iter_, ALIAS); \
ALIAS##_iter_++)
/* This is the information that is put into the cgraph local structure
to recover a function. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment