Allow passing arrays in registers on AArch64

Michael Hudson-Doyle
Fri Jan 17 08:22:00 GMT 2014

Hi, as discussed in
GCC currently gets a detail of the AArch64 ABI wrong: arrays are not
always passed by reference.  Fortunately the fix is rather easy...

I guess this is an ABI break but my understand there has been no release
of GCC which supports compiling a language that can pass arrays by value
on AArch64 yet.


  2014-01-17  Michael Hudson-Doyle  <>

            PR target/59799

            * config/aarch64/aarch64.c (aarch64_pass_by_reference):
              The rules for passing arrays in registers are the same as
              for structs, so remove the special case for them.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: aarch64-abi-fix.diff
Type: text/x-patch
Size: 567 bytes
Desc: not available
URL: <>

More information about the Gcc-patches mailing list