summaryrefslogtreecommitdiffstats
path: root/gcc/unwind-dw2-fde.c
diff options
context:
space:
mode:
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-22 20:33:13 +0000
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-22 20:33:13 +0000
commit183c0b2a77bf08c9f27dc6828ffff394771d5f3c (patch)
treebabac6b89b2506b6c4d65851331a8e4a99ddeb06 /gcc/unwind-dw2-fde.c
parent35cea10c92f6643d1048236f774a4193dceb4916 (diff)
downloadppe42-gcc-183c0b2a77bf08c9f27dc6828ffff394771d5f3c.tar.gz
ppe42-gcc-183c0b2a77bf08c9f27dc6828ffff394771d5f3c.zip
* unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
fields when comparing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46414 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unwind-dw2-fde.c')
-rw-r--r--gcc/unwind-dw2-fde.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/unwind-dw2-fde.c b/gcc/unwind-dw2-fde.c
index 729adbbd4ab..70526856a14 100644
--- a/gcc/unwind-dw2-fde.c
+++ b/gcc/unwind-dw2-fde.c
@@ -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;
}
OpenPOWER on IntegriCloud