From f920765d48d5349329051d416b44601295362870 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 1 Aug 2003 22:17:44 +0000 Subject: [PATCH] except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode, for accesses to exc_ptr. * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode, for accesses to exc_ptr. From-SVN: r70075 --- gcc/ChangeLog | 5 +++++ gcc/except.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0791e40838a..d00a0bb0283 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-08-01 Richard Kenner + + * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode, + for accesses to exc_ptr. + 2003-08-01 Geoffrey Keating * doc/sourcebuild.texi (Front End Directory): Don't make references diff --git a/gcc/except.c b/gcc/except.c index c34dcd9b521..97e0cb2b2b9 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -2140,12 +2140,12 @@ sjlj_emit_dispatch_table (rtx dispatch_label, struct sjlj_lp_info *lp_info) dispatch = copy_to_reg (mem); mem = adjust_address (fc, word_mode, sjlj_fc_data_ofs); - if (word_mode != Pmode) + if (word_mode != ptr_mode) { #ifdef POINTERS_EXTEND_UNSIGNED - mem = convert_memory_address (Pmode, mem); + mem = convert_memory_address (ptr_mode, mem); #else - mem = convert_to_mode (Pmode, mem, 0); + mem = convert_to_mode (ptr_mode, mem, 0); #endif } emit_move_insn (cfun->eh->exc_ptr, mem); -- 2.30.2