aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2006-02-23 18:16:12 +0000
committerDaniel Berlin <dberlin@gcc.gnu.org>2006-02-23 18:16:12 +0000
commit4b0e73469f6f59deff26f718a946b4b41b63049d (patch)
tree302fd6a4a661f407ef5527b0c07894710916b231 /gcc
parenta5c8d67f10eb90a6f2eff58e50c9ee90d401eb56 (diff)
downloadgcc-4b0e73469f6f59deff26f718a946b4b41b63049d.zip
gcc-4b0e73469f6f59deff26f718a946b4b41b63049d.tar.gz
gcc-4b0e73469f6f59deff26f718a946b4b41b63049d.tar.bz2
re PR tree-optimization/26376 (K+R style function compiled with -fipa-pta ICEs)
2006-02-23 Daniel Berlin <dberlin@dberlin.org> Fix PR tree-optimization/26376 * tree-ssa-structalias.c (find_func_aliases): Use get_id_for_tree, remove assert. From-SVN: r111392
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-ssa-structalias.c8
2 files changed, 8 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1f81c5b..c3e3cd9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2006-02-23 Daniel Berlin <dberlin@dberlin.org>
+
+ Fix PR tree-optimization/26376
+ * tree-ssa-structalias.c (find_func_aliases): Use get_id_for_tree,
+ remove assert.
+
2006-02-23 Jakub Jelinek <jakub@redhat.com>
PR middle-end/26412
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index 3dac076..5d84f13 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -3291,7 +3291,6 @@ find_func_aliases (tree origt)
tree lhsop;
tree rhsop;
unsigned int varid;
- bool found = false;
tree arglist;
varinfo_t fi;
int i = 1;
@@ -3313,14 +3312,12 @@ find_func_aliases (tree origt)
we should still be able to handle. */
if (decl)
{
- found = lookup_id_for_tree (decl, &varid);
- gcc_assert (found);
+ varid = get_id_for_tree (decl);
}
else
{
decl = TREE_OPERAND (rhsop, 0);
- found = lookup_id_for_tree (decl, &varid);
- gcc_assert (found);
+ varid = get_id_for_tree (decl);
}
/* Assign all the passed arguments to the appropriate incoming
@@ -3806,7 +3803,6 @@ create_function_info_for (tree decl, const char *name)
arg = DECL_ARGUMENTS (decl);
-
/* Set up variables for each argument. */
for (i = 1; i < vi->fullsize; i++)
{