re PR middle-end/35595 (build broke in newlib erf_lgamma.c for cris-elf)
authorRichard Guenther <rguenther@suse.de>
Sat, 15 Mar 2008 03:53:12 +0000 (03:53 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Sat, 15 Mar 2008 03:53:12 +0000 (03:53 +0000)
PR middle-end/35595
* tree-ssa-pre.c (bitmap_find_leader): Handle expression
being a PHI_NODE.

From-SVN: r133237

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

index 79ef713121eeb4ea43bb666d8e44ce13e557a8c9..e640f6cc4c49ddd8a788f093d9ea6bb41bd2d232 100644 (file)
@@ -1,3 +1,9 @@
+2008-03-15  Richard Guenther  <rguenther@suse.de>
+
+       PR middle-end/35595
+       * tree-ssa-pre.c (bitmap_find_leader): Handle expression
+       being a PHI_NODE.
+
 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
        
        * doc/invoke.texi (Option Summary, Xtensa Options): Document
index 9a5fa4444074b0c83f8e584c1bce092729b62a3c..616627ccb1bea46b8bea3d2eb632474142b67124 100644 (file)
@@ -1431,7 +1431,8 @@ bitmap_find_leader (bitmap_set_t set, tree val, tree stmt)
          if (stmt)
            {
              tree def_stmt = SSA_NAME_DEF_STMT (val);
-             if (bb_for_stmt (def_stmt) == bb_for_stmt (stmt)
+             if (TREE_CODE (def_stmt) != PHI_NODE
+                 && bb_for_stmt (def_stmt) == bb_for_stmt (stmt)
                  && stmt_ann (def_stmt)->uid >= stmt_ann (stmt)->uid)
                continue;
            }