[cfe-dev] Microsoft ABI Support vs. ms_struct & Removing -mms-bitfields

Eli Friedman eli.friedman at gmail.com
Tue Sep 3 12:22:37 PDT 2013


On Tue, Sep 3, 2013 at 11:19 AM, Warren Hunt <whunt at google.com> wrote:

>
> If people are using ms_struct and non-standard layouts without thinking
> about it then perhaps it is reasonable to force them to think about it?
>  The ms_struct pragma is an ABI change, which has somewhat wide-reaching
> consequences.  I suspect that the most common use case is to read
> serialized data directly into memory.  I'm assuming that the data was
> serialized by code generated by the cl.exe (which is why they're using
> ms-struct in the first place) and so they're likely to get ms layout for
> non-standard layout types in the serialized data and might have bugs.
>

I doubt anyone is actually directly serializing structs with vptrs. :)  I
just expect that the pragmas might cover more than they should.

It's not unreasonable to force people to think about it, but we probably
need some sort of deprecation period.

-Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130903/9c4ae7ac/attachment.html>


More information about the cfe-dev mailing list