Commit 2f9ec5e5 by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

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
parent 30cf4896
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;
}
......
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