diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-10-19 21:54:11 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-10-19 21:54:11 +0200 |
commit | 4793ad6b2d52778521b8bc22fd3247f641deb468 (patch) | |
tree | 7a9333167ca5303bf02997104457f27c119642fe /gcc/unwind-dw2.c | |
parent | 1517fd57b68072b7bc7335cd410da066f82dc26d (diff) | |
download | gcc-4793ad6b2d52778521b8bc22fd3247f641deb468.zip gcc-4793ad6b2d52778521b8bc22fd3247f641deb468.tar.gz gcc-4793ad6b2d52778521b8bc22fd3247f641deb468.tar.bz2 |
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
Diffstat (limited to 'gcc/unwind-dw2.c')
-rw-r--r-- | gcc/unwind-dw2.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/unwind-dw2.c b/gcc/unwind-dw2.c index a86c21b..82958b0 100644 --- a/gcc/unwind-dw2.c +++ b/gcc/unwind-dw2.c @@ -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: |