1
# DP: Proposed patch for PR /59799, allow passing arrays in registers on AArch64.
3
--- a/src/gcc/config/aarch64/aarch64.c
4
+++ b/src/gcc/config/aarch64/aarch64.c
5
@@ -987,10 +987,7 @@ aarch64_pass_by_reference (cumulative_args_t pcum ATTRIBUTE_UNUSED,
9
- /* Arrays always passed by reference. */
10
- if (TREE_CODE (type) == ARRAY_TYPE)
12
- /* Other aggregates based on their size. */
13
+ /* Aggregates based on their size. */
14
if (AGGREGATE_TYPE_P (type))
15
size = int_size_in_bytes (type);