From 8a1053288e0f6bc23095ae565d1e5d359113a584 Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Thu, 26 Jan 2006 15:24:51 +0000 Subject: [PATCH] tree-ssa-alias.c (maybe_create_global_var): Change subvar walking to an assertion that we don't have subvar'd variables. 2006-01-26 Daniel Berlin * tree-ssa-alias.c (maybe_create_global_var): Change subvar walking to an assertion that we don't have subvar'd variables. From-SVN: r110257 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-alias.c | 9 +-------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f925b006e51..91175a96f70 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-01-26 Daniel Berlin + + * tree-ssa-alias.c (maybe_create_global_var): Change + subvar walking to an assertion that we don't have subvar'd variables. + 2006-01-26 Andrew Pinski PR C/25861 diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index a890e11ce75..75a5ae57674 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -1688,15 +1688,8 @@ maybe_create_global_var (struct alias_info *ai) call-clobbered variables. */ if (global_var && var != global_var) { - subvar_t svars; add_may_alias (var, global_var); - if (var_can_have_subvars (var) - && (svars = get_subvars_for_var (var))) - { - subvar_t sv; - for (sv = svars; sv; sv = sv->next) - mark_sym_for_renaming (sv->var); - } + gcc_assert (!get_subvars_for_var (var)); } mark_sym_for_renaming (var);