Allow passing arrays in registers on AArch64

Michael Hudson-Doyle michael.hudson@linaro.org
Fri Jan 17 08:22:00 GMT 2014


Hi, as discussed in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59799
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.

Cheers,
mwh

  2014-01-17  Michael Hudson-Doyle  <michael.hudson@linaro.org>

            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: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140117/92ff7101/attachment.bin>


More information about the Gcc-patches mailing list