Commit 4b0e7346 by Daniel Berlin Committed by Daniel Berlin

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
parent a5c8d67f
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> 2006-02-23 Jakub Jelinek <jakub@redhat.com>
PR middle-end/26412 PR middle-end/26412
......
...@@ -3291,7 +3291,6 @@ find_func_aliases (tree origt) ...@@ -3291,7 +3291,6 @@ find_func_aliases (tree origt)
tree lhsop; tree lhsop;
tree rhsop; tree rhsop;
unsigned int varid; unsigned int varid;
bool found = false;
tree arglist; tree arglist;
varinfo_t fi; varinfo_t fi;
int i = 1; int i = 1;
...@@ -3313,14 +3312,12 @@ find_func_aliases (tree origt) ...@@ -3313,14 +3312,12 @@ find_func_aliases (tree origt)
we should still be able to handle. */ we should still be able to handle. */
if (decl) if (decl)
{ {
found = lookup_id_for_tree (decl, &varid); varid = get_id_for_tree (decl);
gcc_assert (found);
} }
else else
{ {
decl = TREE_OPERAND (rhsop, 0); decl = TREE_OPERAND (rhsop, 0);
found = lookup_id_for_tree (decl, &varid); varid = get_id_for_tree (decl);
gcc_assert (found);
} }
/* Assign all the passed arguments to the appropriate incoming /* Assign all the passed arguments to the appropriate incoming
...@@ -3806,7 +3803,6 @@ create_function_info_for (tree decl, const char *name) ...@@ -3806,7 +3803,6 @@ create_function_info_for (tree decl, const char *name)
arg = DECL_ARGUMENTS (decl); arg = DECL_ARGUMENTS (decl);
/* Set up variables for each argument. */ /* Set up variables for each argument. */
for (i = 1; i < vi->fullsize; i++) for (i = 1; i < vi->fullsize; i++)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment