]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/49572 (gcc.dg/tree-ssa/20030709-2.c scan-tree-dump-times...
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 30 Jun 2011 19:37:41 +0000 (19:37 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 30 Jun 2011 19:37:41 +0000 (19:37 +0000)
PR tree-optimization/49572
* tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
type of the RHS instead of that of the LHS for the expression type.

From-SVN: r175723

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

index 37eba05b9e8761500a8816f378516066ad398a1d..87407c20e382afcf89479b95d519c24decb5f9ab 100644 (file)
@@ -1,16 +1,22 @@
+2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR tree-optimization/49572
+       * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
+       type of the RHS instead of that of the LHS for the expression type.
+
 2011-06-30  Jack Howarth  <howarth@bromo.med.uc.edu>
 
-        Backport from mainline
-        2011-02-07 Mike Stump  <mikestump@comcast.net>
-
-        PR target/42333
-        Add __ieee_divdc3 entry point.
-        * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
-        entry point.
-        (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
-        * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
-        * config/darwin.c (darwin_rename_builtins): Add.
-        * config/darwin-protos.h (darwin_rename_builtins): Add.
+       Backport from mainline
+       2011-02-07 Mike Stump  <mikestump@comcast.net>
+
+       PR target/42333
+       Add __ieee_divdc3 entry point.
+       * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
+       entry point.
+       (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
+       * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
+       * config/darwin.c (darwin_rename_builtins): Add.
+       * config/darwin-protos.h (darwin_rename_builtins): Add.
 
 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
 
index 1b67ccddc2b6f19ea76a0e382a6eca846d20e31e..28eaa904a715f63e77c6b90ef3a75cf7dc3b029a 100644 (file)
@@ -209,13 +209,11 @@ initialize_hash_element (gimple stmt, tree lhs,
     {
       enum tree_code subcode = gimple_assign_rhs_code (stmt);
 
-      expr->type = NULL_TREE;
-
       switch (get_gimple_rhs_class (subcode))
         {
         case GIMPLE_SINGLE_RHS:
           expr->kind = EXPR_SINGLE;
-         expr->type = TREE_TYPE (gimple_assign_lhs (stmt));
+         expr->type = TREE_TYPE (gimple_assign_rhs1 (stmt));
           expr->ops.single.rhs = gimple_assign_rhs1 (stmt);
           break;
         case GIMPLE_UNARY_RHS: