diff options
author | Andrew MacLeod <amacleod@cygnus.com> | 1998-06-17 13:05:54 +0000 |
---|---|---|
committer | Andrew Macleod <amacleod@gcc.gnu.org> | 1998-06-17 13:05:54 +0000 |
commit | 3301dc51911505b0c7e9b60160ddf6666bd31424 (patch) | |
tree | 22bc8784a037d4b0cfa19fb8c9ca1a0567bf8d46 /gcc/except.c | |
parent | 33f264afdaf61ef056db4c94d210c60a50460eca (diff) | |
download | gcc-3301dc51911505b0c7e9b60160ddf6666bd31424.zip gcc-3301dc51911505b0c7e9b60160ddf6666bd31424.tar.gz gcc-3301dc51911505b0c7e9b60160ddf6666bd31424.tar.bz2 |
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
Diffstat (limited to 'gcc/except.c')
-rw-r--r-- | gcc/except.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |