Fix handling of large arguments passed by value.
commit4f1c5e54d782b26304b0095ffb3ceb4c92c3c78d
authorJohn David Anglin <danglin@gcc.gnu.org>
Sat, 15 Apr 2023 17:02:44 +0000 (15 17:02 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 15 Apr 2023 17:02:44 +0000 (15 17:02 +0000)
treea5d2b649420288edcfbac31b2837c7fea921b939
parent13669741e673fa6a7b7c8d68f992e58ecd393160
Fix handling of large arguments passed by value.

2023-04-15  John David Anglin  <danglin@gcc.gnu.org>

gcc/ChangeLog:

PR target/104989
* config/pa/pa-protos.h (pa_function_arg_size): Update prototype.
* config/pa/pa.cc (pa_function_arg): Return NULL_RTX if argument
size is zero.
(pa_arg_partial_bytes): Don't call pa_function_arg_size twice.
(pa_function_arg_size): Change return type to int.  Return zero
for arguments larger than 1 GB.  Update comments.
gcc/config/pa/pa-protos.h
gcc/config/pa/pa.cc