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