RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

H.J. Lu via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 11 06:00:14 PST 2016


On Thu, Feb 11, 2016 at 5:44 AM, Matthijs van Duin
<matthijsvanduin at gmail.com> wrote:
> On 11 February 2016 at 13:58, H.J. Lu <hjl.tools at gmail.com> wrote:
>> "POD for the purpose of layout" is defined in the Itanium C++ ABI here:
>>
>> http://mentorembedded.github.io/cxx-abi/abi.html#definitions
>
> Sorry, I overlooked that.
>
> I still stand by my viewpoint however that triviality of copying and
> destruction is the appropriate criterion here rather than this obscure
> constraint on layout.

My focus is interoperability between C and C++:

https://llvm.org/bugs/show_bug.cgi?id=26337

I intentionally exclude C++ specific features in my propose.

However you have a very valid point.  I encourage you to raise it with C++
ABI group:

http://sourcerytools.com/cgi-bin/mailman/listinfo/cxx-abi-dev



-- 
H.J.


More information about the cfe-commits mailing list