diff options
author | Jim Wilson <wilson@cygnus.com> | 1999-01-26 13:34:42 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1999-01-26 05:34:42 -0800 |
commit | ea0f9a859f7c58841f7a7993799033585aaf962a (patch) | |
tree | 092d96a44f68829b5e1eeef50bd53960c09222a4 /gcc/function.c | |
parent | aa9bc2fc33095447342291cb201b4f52f26ef216 (diff) |
Fix i960 build failure with unrecognizable insn.
* function.c (expand_function_end): Pass arg_pointer_save_area to
validize_mem before using it. Emit code into a sequence.
From-SVN: r24872
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/function.c b/gcc/function.c index 1cb8c44bbcd..ee76aa6bb52 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -5947,8 +5947,15 @@ expand_function_end (filename, line, end_bindings) /* Save the argument pointer if a save area was made for it. */ if (arg_pointer_save_area) { - rtx x = gen_move_insn (arg_pointer_save_area, virtual_incoming_args_rtx); - emit_insn_before (x, tail_recursion_reentry); + /* arg_pointer_save_area may not be a valid memory address, so we + have to check it and fix it if necessary. */ + rtx seq; + start_sequence (); + emit_move_insn (validize_mem (arg_pointer_save_area), + virtual_incoming_args_rtx); + seq = gen_sequence (); + end_sequence (); + emit_insn_before (seq, tail_recursion_reentry); } /* Initialize any trampolines required by this function. */ |