[prev in list] [next in list] [prev in thread] [next in thread]
List: cfe-commits
Subject: Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct
From: Michael Matz via cfe-commits <cfe-commits () lists ! llvm ! org>
Date: 2016-02-22 12:39:54
Message-ID: alpine.LSU.2.20.1602221339160.20277 () wotan ! suse ! de
[Download RAW message or body]
Hi,
On Fri, 19 Feb 2016, Richard Smith wrote:
> >> > The trivially copyable is gone again. Why is it not necessary?
> >>
> >> The C++ ABI doesn't defer to the C psABI for types that aren't
> >> trivially-copyable. See
> >> http://mentorembedded.github.io/cxx-abi/abi.html#normal-call
> >
> > Hmm, yes, but we don't want to define something for only C and C++, but
> > language independend (so far as possible). And given only the above
> > language I think this type:
> >
> > struct S {
> > S() {something();}
> > };
> >
> > would be an empty type, and that's not what we want.
>
> Yes it is. Did you mean to give S a copy constructor, copy assignment
> operator, or destructor instead?
Er, yes, I did mean to :-)
Ciao,
Michael.
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic