public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/59799] New: aarch64_pass_by_reference never passes arrays by value, contrary to ABI documentation
@ 2014-01-14  1:59 michael.hudson at linaro dot org
  2014-01-14  2:04 ` [Bug target/59799] " pinskia at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: michael.hudson at linaro dot org @ 2014-01-14  1:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59799

            Bug ID: 59799
           Summary: aarch64_pass_by_reference never passes arrays by
                    value, contrary to ABI documentation
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: michael.hudson at linaro dot org

It's always possible I'm totally misunderstanding something here, but it seems
that this code:

      /* Arrays always passed by reference.  */
      if (TREE_CODE (type) == ARRAY_TYPE)
    return true;

in gcc/config/aarch64/aarch64.c does not agree with the rules from "Procedure
Call Standard for the ARM 64-bit Architecture"
(http://infocenter.arm.com/help/topic/com.arm.doc.ihi0055b/IHI0055B_aapcs64.pdf).
 As far as I can see the rules on page 18 and 19 make no distinction between
arrays and structs and they can both be passed in registers when small enough.


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-10-27 19:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-14  1:59 [Bug target/59799] New: aarch64_pass_by_reference never passes arrays by value, contrary to ABI documentation michael.hudson at linaro dot org
2014-01-14  2:04 ` [Bug target/59799] " pinskia at gcc dot gnu.org
2014-01-14  2:05 ` pinskia at gcc dot gnu.org
2014-01-14  2:06 ` ian at airs dot com
2014-01-15  0:48 ` pinskia at gcc dot gnu.org
2014-01-15  9:04 ` ebotcazou at gcc dot gnu.org
2014-01-16 22:19 ` michael.hudson at linaro dot org
2014-01-17  1:43 ` michael.hudson at linaro dot org
2014-01-17  4:51 ` ian at airs dot com
2014-01-17 18:19 ` yufeng at gcc dot gnu.org
2014-02-19 15:33 ` yroux at gcc dot gnu.org
2014-10-27 15:24 ` ramana at gcc dot gnu.org
2014-10-27 20:25 ` michael.hudson at linaro dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).