Commit e533f648 by Andrew Haley Committed by Andrew Haley

expr.c (expand_expr): Do not return the last statement in a block as the block's value.

1999-07-14  Andrew Haley  <aph@cygnus.com>
        * expr.c (expand_expr): Do not return the last statement in a
        block as the block's value.

From-SVN: r28112
parent 39df13d9
1999-07-14 Andrew Haley <aph@cygnus.com>
* expr.c (expand_expr): Do not return the last statement in a
block as the block's value.
Sat Jul 3 22:26:32 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> Sat Jul 3 22:26:32 1999 Alexandre Petit-Bianco <apbianco@cygnus.com>
* expr.c (force_evaluation_order): Save the COMPOUND_EXPR'ed * expr.c (force_evaluation_order): Save the COMPOUND_EXPR'ed
......
...@@ -1895,7 +1895,6 @@ java_lang_expand_expr (exp, target, tmode, modifier) ...@@ -1895,7 +1895,6 @@ java_lang_expand_expr (exp, target, tmode, modifier)
{ {
tree local; tree local;
tree body = BLOCK_EXPR_BODY (exp); tree body = BLOCK_EXPR_BODY (exp);
struct rtx_def *to_return;
pushlevel (2); /* 2 and above */ pushlevel (2); /* 2 and above */
expand_start_bindings (0); expand_start_bindings (0);
local = BLOCK_EXPR_DECLS (exp); local = BLOCK_EXPR_DECLS (exp);
...@@ -1913,10 +1912,11 @@ java_lang_expand_expr (exp, target, tmode, modifier) ...@@ -1913,10 +1912,11 @@ java_lang_expand_expr (exp, target, tmode, modifier)
emit_queue (); emit_queue ();
body = TREE_OPERAND (body, 1); body = TREE_OPERAND (body, 1);
} }
to_return = expand_expr (body, target, tmode, modifier); expand_expr (body, const0_rtx, VOIDmode, 0);
emit_queue ();
poplevel (1, 1, 0); poplevel (1, 1, 0);
expand_end_bindings (getdecls (), 1, 0); expand_end_bindings (getdecls (), 1, 0);
return to_return; return const0_rtx;
} }
break; break;
......
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