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:
parent
30cf489670
commit
2f9ec5e5cc
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user