Commit 9dc5c4f5 by Geoffrey Keating Committed by Geoffrey Keating

* unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.

From-SVN: r121165
parent 01ffa370
2007-01-24 Geoffrey Keating <geoffk@apple.com>
* unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
PR middle-end/30447
......
......@@ -636,6 +636,16 @@ execute_stack_op (const unsigned char *op_ptr, const unsigned char *op_end,
result = stack[stack_elt - 2];
break;
case DW_OP_swap:
{
_Unwind_Word t;
gcc_assert (stack_elt >= 2);
t = stack[stack_elt - 1];
stack[stack_elt - 1] = stack[stack_elt - 2];
stack[stack_elt - 2] = t;
goto no_push;
}
case DW_OP_rot:
{
_Unwind_Word t1, t2, t3;
......
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