Commit ed3444e9 by Eric Botcazou Committed by Eric Botcazou

gimplify.c (gimplify_modify_expr_rhs): Gimplify the LHS using the…

gimplify.c (gimplify_modify_expr_rhs): Gimplify the LHS using the is_gimple_lvalue predicate instead of is_gimple_min_lval.

	* gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
	using the is_gimple_lvalue predicate instead of is_gimple_min_lval.

From-SVN: r134442
parent 893174fa
2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
* gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
2008-04-18 Tom Tromey <tromey@redhat.com> 2008-04-18 Tom Tromey <tromey@redhat.com>
PR libcpp/15500: PR libcpp/15500:
......
...@@ -3636,7 +3636,7 @@ gimplify_modify_expr_rhs (tree *expr_p, tree *from_p, tree *to_p, tree *pre_p, ...@@ -3636,7 +3636,7 @@ gimplify_modify_expr_rhs (tree *expr_p, tree *from_p, tree *to_p, tree *pre_p,
tree result = *to_p; tree result = *to_p;
ret = gimplify_expr (&result, pre_p, post_p, ret = gimplify_expr (&result, pre_p, post_p,
is_gimple_min_lval, fb_lvalue); is_gimple_lvalue, fb_lvalue);
if (ret != GS_ERROR) if (ret != GS_ERROR)
ret = GS_OK; ret = GS_OK;
......
2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/dynamic_elab_pkg.ads: New helper.
* gnat.dg/dynamic_elab1.ad[sb]: New test.
* gnat.dg/dynamic_elab2.ad[sb]: Likewise.
2008-04-18 Kris Van Hees <kris.van.hees@oracle.com> 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
Tests for char16_t and char32_t support. Tests for char16_t and char32_t support.
-- { dg-do compile }
-- { dg-options "-gnatE" }
package body Dynamic_Elab1 is
function Get_Plot return Plot is
procedure Fill (X : out Plot) is
begin
X.Data := Get_R;
end;
X : Plot;
begin
Fill(X);
return X;
end;
end Dynamic_Elab1;
with Dynamic_Elab_Pkg; use Dynamic_Elab_Pkg;
package Dynamic_Elab1 is
type Plot is record
Data : R;
end record;
pragma Pack (Plot);
function Get_Plot return Plot;
end Dynamic_Elab1;
-- { dg-do compile }
-- { dg-options "-gnatE" }
package body Dynamic_Elab2 is
function Get_Plot return Plot is
procedure Fill (X : out Plot) is
begin
X.Data := Get_R;
end;
X : Plot;
begin
Fill(X);
return X;
end;
end Dynamic_Elab2;
with Dynamic_Elab_Pkg; use Dynamic_Elab_Pkg;
package Dynamic_Elab2 is
type Plot is record
B : Boolean;
Data : R;
end record;
pragma Pack (Plot);
function Get_Plot return Plot;
end Dynamic_Elab2;
package Dynamic_Elab_Pkg is
type R is record
Code : Integer;
Val : Boolean;
end record;
function Get_R return R;
end Dynamic_Elab_Pkg;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment