+2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
+
+ * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
+
2011-06-20 Andrey Belevantsev <abel@ispras.ru>
Backport from mainline
+2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gnat.dg/opt17.ad[sb]: New test.
+
2011-06-20 Andrey Belevantsev <abel@ispras.ru>
Backport from mainline
--- /dev/null
+-- { dg-do compile }
+-- { dg-options "-O" }
+
+package body Opt17 is
+
+ function Func return S is
+ V : String (1 .. 6);
+ begin
+ V (1 .. 3) := "ABC";
+ return V (1 .. 5);
+ end;
+
+end Opt17;
--- /dev/null
+package Opt17 is
+
+ subtype S is String (1 .. 5);
+
+ function Func return S;
+
+end Opt17;
{
case GIMPLE_SINGLE_RHS:
expr->kind = EXPR_SINGLE;
+ expr->type = TREE_TYPE (gimple_assign_lhs (stmt));
expr->ops.single.rhs = gimple_assign_rhs1 (stmt);
break;
case GIMPLE_UNARY_RHS: