re PR bootstrap/46474 (powerpc64-linux bootstrap comparison failure in libcpp/symtab.o)
authorRichard Guenther <rguenther@suse.de>
Mon, 15 Nov 2010 12:04:46 +0000 (12:04 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 15 Nov 2010 12:04:46 +0000 (12:04 +0000)
2010-11-15  Richard Guenther  <rguenther@suse.de>

PR bootstrap/46474
* tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.

From-SVN: r166750

gcc/ChangeLog
gcc/tree-ssa-math-opts.c

index 872ab8bca1be706fc9406f7ddbd04c85278dfd8f..5387f5b78a64714df27d9c186fc9197b182e6766 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-15  Richard Guenther  <rguenther@suse.de>
+
+       PR bootstrap/46474
+       * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
+
 2010-11-15  Nick Clifton  <nickc@redhat.com>
 
        * config/stormy16/stormy16.c (direct_return): Do not generate a
index a2dfac6bb482e634de617ff8d07f98ea17f8f11c..7837161e44021d9cbc9a2425d0728b780aa3ee7c 100644 (file)
@@ -1534,6 +1534,9 @@ convert_mult_to_fma (gimple mul_stmt)
 
       use_stmt = USE_STMT (use_p);
 
+      if (is_gimple_debug (use_stmt))
+       continue;
+
       /* For now restrict this operations to single basic blocks.  In theory
         we would want to support sinking the multiplication in
         m = a*b;
@@ -1603,10 +1606,14 @@ convert_mult_to_fma (gimple mul_stmt)
   FOR_EACH_IMM_USE_STMT (use_stmt, imm_iter, mul_result)
     {
       gimple_stmt_iterator gsi = gsi_for_stmt (use_stmt);
-      enum tree_code use_code = gimple_assign_rhs_code (use_stmt);
+      enum tree_code use_code;
       tree addop, mulop1, result = mul_result;
       bool negate_p = false;
 
+      if (is_gimple_debug (use_stmt))
+       continue;
+
+      use_code = gimple_assign_rhs_code (use_stmt);
       if (use_code == NEGATE_EXPR)
        {
          result = gimple_assign_lhs (use_stmt);