New issue -- returning aggregates

Jim Dehnert dehnert at baalbek.engr.sgi.com
Tue Jul 25 00:02:29 UTC 2000


I just noticed that the IA-64 psABI requires returning large aggregates
(over 256 bits except for some floating point ones) via a buffer
allocated by the caller and passed in r8.  We have specified in the C++
ABI that class results with non-trivial copy constructors be returned
in a buffer allocated by the caller and passed as an implicit first
parameter (i.e. in out0, not in r8).  I suggest that we make these two
cases consistent, i.e. pass the buffer address in r8 instead of out0.
(This would not affect non-IA-64 compilers.)

Jim

-		Jim Dehnert  x3-4272




More information about the cxx-abi-dev mailing list