Commit f920765d by Richard Kenner Committed by Richard Kenner

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
parent 8e5f33ff
2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
for accesses to exc_ptr.
2003-08-01 Geoffrey Keating <geoffk@apple.com> 2003-08-01 Geoffrey Keating <geoffk@apple.com>
* doc/sourcebuild.texi (Front End Directory): Don't make references * doc/sourcebuild.texi (Front End Directory): Don't make references
......
...@@ -2140,12 +2140,12 @@ sjlj_emit_dispatch_table (rtx dispatch_label, struct sjlj_lp_info *lp_info) ...@@ -2140,12 +2140,12 @@ sjlj_emit_dispatch_table (rtx dispatch_label, struct sjlj_lp_info *lp_info)
dispatch = copy_to_reg (mem); dispatch = copy_to_reg (mem);
mem = adjust_address (fc, word_mode, sjlj_fc_data_ofs); mem = adjust_address (fc, word_mode, sjlj_fc_data_ofs);
if (word_mode != Pmode) if (word_mode != ptr_mode)
{ {
#ifdef POINTERS_EXTEND_UNSIGNED #ifdef POINTERS_EXTEND_UNSIGNED
mem = convert_memory_address (Pmode, mem); mem = convert_memory_address (ptr_mode, mem);
#else #else
mem = convert_to_mode (Pmode, mem, 0); mem = convert_to_mode (ptr_mode, mem, 0);
#endif #endif
} }
emit_move_insn (cfun->eh->exc_ptr, mem); emit_move_insn (cfun->eh->exc_ptr, mem);
......
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