Commit 4793ad6b by Jakub Jelinek Committed by Jakub Jelinek

unwind-dw2.c (execute_stack_op): Fix operand order for DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.

	* unwind-dw2.c (execute_stack_op): Fix operand order for
	DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.

	* gcc.dg/cleanup-13.c: New test.

From-SVN: r152989
parent 1517fd57
2009-10-19 Jakub Jelinek <jakub@redhat.com>
* unwind-dw2.c (execute_stack_op): Fix operand order for
DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
2009-10-19 Eric Botcazou <ebotcazou@adacore.com>
* gimple-low.c (struct lower_data): Add cannot_fallthru field.
2009-10-13 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/cleanup-13.c: New test.
2009-10-19 Janus Weil <janus@gcc.gnu.org>
PR fortran/41586
......
......@@ -789,22 +789,22 @@ execute_stack_op (const unsigned char *op_ptr, const unsigned char *op_end,
result = second ^ first;
break;
case DW_OP_le:
result = (_Unwind_Sword) first <= (_Unwind_Sword) second;
result = (_Unwind_Sword) second <= (_Unwind_Sword) first;
break;
case DW_OP_ge:
result = (_Unwind_Sword) first >= (_Unwind_Sword) second;
result = (_Unwind_Sword) second >= (_Unwind_Sword) first;
break;
case DW_OP_eq:
result = (_Unwind_Sword) first == (_Unwind_Sword) second;
result = (_Unwind_Sword) second == (_Unwind_Sword) first;
break;
case DW_OP_lt:
result = (_Unwind_Sword) first < (_Unwind_Sword) second;
result = (_Unwind_Sword) second < (_Unwind_Sword) first;
break;
case DW_OP_gt:
result = (_Unwind_Sword) first > (_Unwind_Sword) second;
result = (_Unwind_Sword) second > (_Unwind_Sword) first;
break;
case DW_OP_ne:
result = (_Unwind_Sword) first != (_Unwind_Sword) second;
result = (_Unwind_Sword) second != (_Unwind_Sword) first;
break;
default:
......
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