From a5d37900ad8b09446297217a1748920bf58c99cc Mon Sep 17 00:00:00 2001 From: Aaron Sawdey Date: Tue, 30 Jan 2018 17:27:16 +0000 Subject: [PATCH] rs6000.c (rs6000_internal_arg_pointer): Only return a reg rtx. 2018-01-30 Aaron Sawdey * config/rs6000/rs6000.c (rs6000_internal_arg_pointer): Only return a reg rtx. From-SVN: r257193 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/rs6000.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0d2e8d53139..5e9801a8e99 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-01-30 Aaron Sawdey + + * config/rs6000/rs6000.c (rs6000_internal_arg_pointer): Only return + a reg rtx. + 2018-01-30 Richard Biener Jakub Jelinek diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 145ac86d41d..a37ebd88cce 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -29602,8 +29602,9 @@ rs6000_internal_arg_pointer (void) emit_insn_after (pat, get_insns ()); pop_topmost_sequence (); } - return plus_constant (Pmode, cfun->machine->split_stack_arg_pointer, - FIRST_PARM_OFFSET (current_function_decl)); + rtx ret = plus_constant (Pmode, cfun->machine->split_stack_arg_pointer, + FIRST_PARM_OFFSET (current_function_decl)); + return copy_to_reg (ret); } return virtual_incoming_args_rtx; } -- 2.30.2