From 5f5f0635f1921f40de45c6783fe0c4e9b4c0d1ba Mon Sep 17 00:00:00 2001 From: Alon Dayan Date: Thu, 13 Mar 2008 15:40:09 +0000 Subject: [multiple changes] 2008-02-19 Alon Dayan Olga Golovanevsky PR tree-optimization/35041 * gcc.dg/struct/wo_prof_double_malloc.c: New test. 2008-03-13 Alon Dayan Olga Golovanevsky PR tree-optimization/35041 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option to locate the right position in a statement. Co-Authored-By: Olga Golovanevsky From-SVN: r133171 --- gcc/ipa-struct-reorg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/ipa-struct-reorg.c') diff --git a/gcc/ipa-struct-reorg.c b/gcc/ipa-struct-reorg.c index 514b9a2..515dba6 100644 --- a/gcc/ipa-struct-reorg.c +++ b/gcc/ipa-struct-reorg.c @@ -887,7 +887,7 @@ find_pos_in_stmt_1 (tree *tp, int *walk_subtrees, void * data) 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; -- cgit v1.1