Commit 5c4a1c7b by Eric Botcazou Committed by Eric Botcazou

utils2.c (gnat_stabilize_reference): Fix thinko.

	* gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
	Fix thinko.

From-SVN: r174690
parent e9f57686
2011-06-06 Eric Botcazou <ebotcazou@adacore.com> 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>:
Fix thinko.
2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred
constants whose full view has discriminants specially. constants whose full view has discriminants specially.
......
...@@ -2518,8 +2518,8 @@ gnat_stabilize_reference (tree ref, bool force, bool *success) ...@@ -2518,8 +2518,8 @@ gnat_stabilize_reference (tree ref, bool force, bool *success)
result = build2 (COMPOUND_EXPR, type, result = build2 (COMPOUND_EXPR, type,
gnat_stabilize_reference (TREE_OPERAND (ref, 0), force, gnat_stabilize_reference (TREE_OPERAND (ref, 0), force,
success), success),
gnat_stabilize_reference_1 (TREE_OPERAND (ref, 1), gnat_stabilize_reference (TREE_OPERAND (ref, 1), force,
force)); success));
break; break;
case CONSTRUCTOR: case CONSTRUCTOR:
......
2011-06-06 Eric Botcazou <ebotcazou@adacore.com> 2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/specs/cond_expr1.ads: New test.
2011-06-06 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/deferred_const4.ad[sb]: New test. * gnat.dg/deferred_const4.ad[sb]: New test.
* gnat.dg/deferred_const4_pkg.ads: New helper. * gnat.dg/deferred_const4_pkg.ads: New helper.
......
-- { dg-do compile }
-- { dg-options "-gnat12 -gnato" }
package Cond_Expr1 is
function Tail (S : String) return String is
(if S'Last <= S'First then "" else S (S'First + 1 .. S'Last));
end Cond_Expr1;
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