This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix c++ ABI failures
On Tue, Apr 30, 2002 at 03:19:40PM -0700, Mark Mitchell wrote:
> > Still, the question is how should be classes with non-trivial
> > constructors or destructors passes on sparc64, ia64 and other ABIs which
> > pass records in registers.
>
> The IA64 C++ ABI is very clear about this. It says, essentially:
>
> If you have a non-trivial copy constructor or destructor, you pass in
> memory.
>
> Otherwise, you do whatever you would have done in C for an equivalent
> structure.
SPARC v9 ABI is not that clear, but I agree that we are totally incompatible
with SunPRO C++ anyway, so we can do whatever we decide to in C++ ABI.
Jakub