unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin fields when comparing.

* unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
	fields when comparing.

From-SVN: r46414
This commit is contained in:
Hans-Peter Nilsson 2001-10-22 20:33:13 +00:00 committed by Hans-Peter Nilsson
parent 30cf489670
commit 2f9ec5e5cc
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-10-22 Hans-Peter Nilsson <hp@bitrange.com>
* unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
fields when comparing.
2001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* arm.h (HOST_INT, HOST_UINT): Delete. Remove all uses.

View File

@ -297,9 +297,12 @@ static int
fde_unencoded_compare (struct object *ob __attribute__((unused)),
fde *x, fde *y)
{
if (x->pc_begin > y->pc_begin)
_Unwind_Ptr x_ptr = *(_Unwind_Ptr *) x->pc_begin;
_Unwind_Ptr y_ptr = *(_Unwind_Ptr *) y->pc_begin;
if (x_ptr > y_ptr)
return 1;
if (x->pc_begin < y->pc_begin)
if (x_ptr < y_ptr)
return -1;
return 0;
}