re PR tree-optimization/26376 (K+R style function compiled with -fipa-pta ICEs)
authorDaniel Berlin <dberlin@dberlin.org>
Thu, 23 Feb 2006 18:16:12 +0000 (18:16 +0000)
committerDaniel Berlin <dberlin@gcc.gnu.org>
Thu, 23 Feb 2006 18:16:12 +0000 (18:16 +0000)
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

gcc/ChangeLog
gcc/tree-ssa-structalias.c

index 1f81c5b2d301dd2a28f7fdfacb8383519080d7a7..c3e3cd9031dcd4f2ada2d019140686274c20608e 100644 (file)
@@ -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
index 3dac07642a8a3b5b62289756159302755a5077e8..5d84f13fe60e62c9c1f1adca3b0e4e944d734e4c 100644 (file)
@@ -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++)
     {