diff options
| author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-26 13:34:42 +0000 |
|---|---|---|
| committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-26 13:34:42 +0000 |
| commit | 70b83e757d056d405d386b4c2cff020a46ed08c2 (patch) | |
| tree | 092d96a44f68829b5e1eeef50bd53960c09222a4 /gcc/function.c | |
| parent | 746b566d548667c75f27a00d6f50d9092c112538 (diff) | |
| download | ppe42-gcc-70b83e757d056d405d386b4c2cff020a46ed08c2.tar.gz ppe42-gcc-70b83e757d056d405d386b4c2cff020a46ed08c2.zip | |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24872 138bc75d-0d04-0410-961f-82ee72b054a4
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. */ |

