diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-18 07:31:30 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-18 07:31:30 +0000 |
commit | 7298dc8b4fdc5b63bd6a66535432f20befa15fbc (patch) | |
tree | fe05dda72592a1cc1bfa37384e18d975a9caf42f /gcc/tree-ssanames.c | |
parent | a6526ba073e55bf93701fb10ca116114b0cac79b (diff) | |
download | gcc-7298dc8b4fdc5b63bd6a66535432f20befa15fbc.tar.gz |
* tree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return
NULL.
* tree-ssa-alias.c (init_alias_info): Likewise.
* tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
(verify_ssa): Likewise.
* tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87698 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssanames.c')
-rw-r--r-- | gcc/tree-ssanames.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-ssanames.c b/gcc/tree-ssanames.c index 55ba145c35a..cc12f28d7d4 100644 --- a/gcc/tree-ssanames.c +++ b/gcc/tree-ssanames.c @@ -205,6 +205,8 @@ make_ssa_name (tree var, tree stmt) memset (t, 0, tree_size (t)); TREE_SET_CODE (t, SSA_NAME); SSA_NAME_VERSION (t) = save_version; + gcc_assert (ssa_name (save_version) == NULL); + VARRAY_TREE (ssa_names, save_version) = t; } else { @@ -260,6 +262,7 @@ release_ssa_name (tree var) defining statement. */ if (! SSA_NAME_IN_FREE_LIST (var)) { + VARRAY_TREE (ssa_names, SSA_NAME_VERSION (var)) = NULL; SSA_NAME_IN_FREE_LIST (var) = 1; TREE_CHAIN (var) = free_ssanames; free_ssanames = var; |