This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] libffi darwin x86-32bit, fix return_sc testcase.


Richard Guenther writes:

 > We obviously disagree about what the ABI specifies.  r126480 made
 > the C/C++ frontend behavior the same as other frontends behavior
 > (for example Fortran behavior, which I explicitly checked).  As GCC
 > supports both promoting function return values or not in the
 > backends and the x86 backend explicitly does _not_ enable this
 > promotion it agrees with my reading of the ABI.

But the ABI isn't in doubt: it is required to 

> Functions pass all integer-valued arguments as words, expanding or
> padding signed or unsigned bytes and halfwords as needed'

and this surely applies to return values as well as arguments passed
to functions.  It is utterly perverse to assume that return values are
treated differently from arguments passed to functions.  So if the
back end isn't promoting return values then the back end is wrong.

Andrew.

-- 
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]