From 3301dc51911505b0c7e9b60160ddf6666bd31424 Mon Sep 17 00:00:00 2001 From: Andrew MacLeod Date: Wed, 17 Jun 1998 13:05:54 +0000 Subject: eh-common.h (struct eh_context): Add comment for hidden use of field dynamic_handler_chain. * eh-common.h (struct eh_context): Add comment for hidden use of field dynamic_handler_chain. * except.c (get_dynamic_handler_chain): Comment on, and use the correct offset of the dynamic_handler_chain field. From-SVN: r20540 --- gcc/except.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/except.c') diff --git a/gcc/except.c b/gcc/except.c index e76f21c..c5c7259 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -1017,7 +1017,10 @@ get_dynamic_handler_chain () rtx ehc, dhc, result; ehc = get_eh_context (); - dhc = ehc; + + /* This is the offset of dynamic_handler_chain in the eh_context struct + declared in eh-common.h. If its location is change, change this offset */ + dhc = plus_constant (ehc, GET_MODE_SIZE (Pmode)); result = copy_to_reg (dhc); -- cgit v1.1