------- Comment #4 from olga at gcc dot gnu dot org 2008-01-31 15:18 ------- The following test fixes the problem. Under the testing now.
Index: ipa-struct-reorg.c =================================================================== --- ipa-struct-reorg.c (revision 131976) +++ ipa-struct-reorg.c (working copy) @@ -887,7 +887,9 @@ tree ref = r_pos->ref; tree t = *tp; - if (t == ref) + if (t == ref || + (TREE_CODE (t) == SSA_NAME + && SSA_NAME_VAR (t) == ref)) { r_pos->pos = tp; return t; Olga -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35041