This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tuples] [patch] Fix in_phi in verify_expr
- From: "Rafael Espindola" <espindola at google dot com>
- To: GCC <gcc-patches at gcc dot gnu dot org>
- Cc: "Diego Novillo" <dnovillo at google dot com>
- Date: Tue, 1 Apr 2008 15:08:06 +0100
- Subject: [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