+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>
PR libcpp/15500:
tree result = *to_p;
ret = gimplify_expr (&result, pre_p, post_p,
- is_gimple_min_lval, fb_lvalue);
+ is_gimple_lvalue, fb_lvalue);
if (ret != GS_ERROR)
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>
Tests for char16_t and char32_t support.
--- /dev/null
+-- { 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;
--- /dev/null
+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;
--- /dev/null
+-- { 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;
--- /dev/null
+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;
--- /dev/null
+package Dynamic_Elab_Pkg is
+
+ type R is record
+ Code : Integer;
+ Val : Boolean;
+ end record;
+
+ function Get_R return R;
+
+end Dynamic_Elab_Pkg;