+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>
{
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: