From: Aaron Sawdey Date: Tue, 30 Jan 2018 17:27:16 +0000 (+0000) Subject: rs6000.c (rs6000_internal_arg_pointer): Only return a reg rtx. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a5d37900ad8b09446297217a1748920bf58c99cc;p=gcc.git 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 --- 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; }