diff options
author | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-01 20:26:25 +0000 |
---|---|---|
committer | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-01 20:26:25 +0000 |
commit | 06c1e1603fb0591f620322f6205c60ea8112282e (patch) | |
tree | ed45bc1a8753f91121d3bb185bcf05fe23f2bb50 | |
parent | 611bd8f1bc1725cd72aa9d296a9f2497cebca777 (diff) | |
download | gcc-06c1e1603fb0591f620322f6205c60ea8112282e.tar.gz |
PR tree-optimization/19670
* tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED
here...
(verify_use): ... set it here, instead.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94557 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/tree-ssa.c | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b039610beef..7633a7ee584 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2005-02-01 Diego Novillo <dnovillo@redhat.com> + + PR tree-optimization/19670 + * tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED + here... + (verify_use): ... set it here, instead. + 2005-02-01 Janis Johnson <janis187@us.ibm.com> * doc/sourcebuild.texi (Test directives): Fix formatting. diff --git a/gcc/tree-ssa.c b/gcc/tree-ssa.c index d7fa593dc29..88493b72644 100644 --- a/gcc/tree-ssa.c +++ b/gcc/tree-ssa.c @@ -108,8 +108,6 @@ flush_pending_stmts (edge e) static bool verify_ssa_name (tree ssa_name, bool is_virtual) { - TREE_VISITED (ssa_name) = 1; - if (TREE_CODE (ssa_name) != SSA_NAME) { error ("Expected an SSA_NAME object"); @@ -219,6 +217,7 @@ verify_use (basic_block bb, basic_block def_bb, tree ssa_name, bool err = false; err = verify_ssa_name (ssa_name, is_virtual); + TREE_VISITED (ssa_name) = 1; if (IS_EMPTY_STMT (SSA_NAME_DEF_STMT (ssa_name)) && var_ann (SSA_NAME_VAR (ssa_name))->default_def == ssa_name) |