Commit 74a88f62 by Andreas Tobler Committed by Andreas Tobler

expr.c (java_stack_swap): Revert gcc_assert patch.

2006-02-04  Andreas Tobler  <a.tobler@schweiz.ch>

	* expr.c (java_stack_swap): Revert gcc_assert patch.

From-SVN: r110579
parent 35c23d2e
2006-02-04 Andreas Tobler <a.tobler@schweiz.ch>
* expr.c (java_stack_swap): Revert gcc_assert patch.
2006-02-03 Ben Elliston <bje@au.ibm.com>
* java-gimplify.c: Use gcc_assert and gcc_unreachable throughout.
......
......@@ -629,12 +629,14 @@ java_stack_swap (void)
tree temp;
tree decl1, decl2;
if (stack_pointer < 2
|| (type1 = stack_type_map[stack_pointer - 1]) == TYPE_UNKNOWN
|| (type2 = stack_type_map[stack_pointer - 2]) == TYPE_UNKNOWN
|| type1 == TYPE_SECOND || type2 == TYPE_SECOND
|| TYPE_IS_WIDE (type1) || TYPE_IS_WIDE (type2))
/* Bad stack swap. */
abort ();
/* Bad stack swap. */
gcc_assert (stack_pointer >= 2
&& (type1 = stack_type_map[stack_pointer - 1]) != TYPE_UNKNOWN
&& (type2 = stack_type_map[stack_pointer - 2]) != TYPE_UNKNOWN
&& (type1 != TYPE_SECOND && type2 != TYPE_SECOND)
&& (! TYPE_IS_WIDE (type1) && ! TYPE_IS_WIDE (type2)));
flush_quick_stack ();
decl1 = find_stack_slot (stack_pointer - 1, type1);
......
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