]> git.ipfire.org Git - thirdparty/gcc.git/commit
Make calls.c use function_arg_info internally
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Aug 2019 08:53:56 +0000 (08:53 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Aug 2019 08:53:56 +0000 (08:53 +0000)
commit78e20effff5d6061c006306c9a105f3e19abb18b
tree69bb9a54638a17fd4c8ba6658acedc1064c7fab7
parent47e58953c4d1b063045413e771a734d8067ce18b
Make calls.c use function_arg_info internally

This patch makes the two main calls.c argument-processing
routines track the state of the argument in a function_arg_info
instead of using separate mode variables.

2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* calls.c (emit_library_call_value_1): Merge arg and orig_arg
into a single function_arg_info, updating its fields when we
apply pass-by-reference and promotion semantics.  Use the
function_arg_info to track the mode rather than keeping it in
a separate local variable.
(initialize_argument_information): Likewise.  Base the final
arg_to_skip on this new function_arg_info rather than creating
a new one from scratch.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@274706 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/calls.c