This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug c++/12558] structure not returned in xmm0 & xmm1


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


nathan at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


------- Additional Comments From nathan at gcc dot gnu dot org  2003-10-10 08:52 -------
not a bug.
types with a non-trivial copy ctor, (or dtor) are returned via a pointer to
storage.

from the ABI
 3.1.4 Return Values

In general, C++ return values are handled just like C return values. This
includes class type results returned in registers. However, if the return value
type has a non-trivial copy constructor or destructor, the caller allocates
space for a temporary, and passes a pointer to the temporary as an implicit
first parameter preceding both the this parameter and user parameters. The
callee constructs the return value into this temporary.


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