diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-23 00:27:44 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-23 00:27:44 +0000 |
commit | 9bd14e3f2a480f6319e408798031fdd90a69b3a7 (patch) | |
tree | 6a329a1462ce5410f79cc96e19ef32901b223c94 /gcc/tree-dfa.c | |
parent | 8539a60c30e19eed889618920e88362267da23c0 (diff) | |
download | gcc-9bd14e3f2a480f6319e408798031fdd90a69b3a7.tar.gz |
* tree-flow-inline.h (var_ann): External variable annotations are
unshared too.
(tree_common_ann): Handle correctly unshared variables annotations.
* tree-dfa.c (create_var_ann): External variable annotations are
unshared too.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120164 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-dfa.c')
-rw-r--r-- | gcc/tree-dfa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c index 9c30eb53e19..59899f17f77 100644 --- a/gcc/tree-dfa.c +++ b/gcc/tree-dfa.c @@ -130,7 +130,7 @@ create_var_ann (tree t) gcc_assert (DECL_P (t)); gcc_assert (!t->base.ann || t->base.ann->common.type == VAR_ANN); - if (TREE_STATIC (t)) + if (!MTAG_P (t) && (TREE_STATIC (t) || DECL_EXTERNAL (t))) { sann = GGC_CNEW (struct static_var_ann_d); ann = &sann->ann; @@ -140,7 +140,7 @@ create_var_ann (tree t) ann->common.type = VAR_ANN; - if (TREE_STATIC (t)) + if (!MTAG_P (t) && (TREE_STATIC (t) || DECL_EXTERNAL (t))) { void **slot; sann->uid = DECL_UID (t); @@ -696,7 +696,7 @@ set_default_def (tree var, tree def) htab_remove_elt (DEFAULT_DEFS (cfun), *loc); return; } - gcc_assert (TREE_CODE (def) == SSA_NAME); + gcc_assert (!def || TREE_CODE (def) == SSA_NAME); loc = htab_find_slot_with_hash (DEFAULT_DEFS (cfun), &in, DECL_UID (var), INSERT); |