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

[tuples] [patch] Fix in_phi in verify_expr


verify_expr is called from both walk_tree and walk_gimple_op. When
called from walk_gimple_op, "data" is never NULL. The problem is that
in_phi is defined as

bool in_phi = (data != NULL);

So any calls from walk_gimple_op are marked as being in a phi node.

This patch fixes it by reverting the logic and changing the call site
of walk_tree.

* tree-cfg.c (verify_expr): Revert the logic for finding if we are in a phi.
                 (verify_stmts): Update to match the new interface of
verify_expr.

OK if regression tests pass?

Cheers,
-- 
Rafael Avila de Espindola

Google Ireland Ltd.
Gordon House
Barrow Street
Dublin 4
Ireland

Registered in Dublin, Ireland
Registration Number: 368047


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