[cfe-commits] Fix for the -mms-bitfields commandline parameter

Jeremiah Zanin Jeremiah.Zanin at volition-inc.com
Mon Oct 8 14:47:08 PDT 2012


The "-mms-bitfields" commandline parameter now properly turns on the ms_struct behavior.

I've never submitted a code change before, hopefully I did this correctly. I included the patch and a new test file.

One result of this change is that __attribute__((ms_struct)) on an enum will produce a warning, for example:

enum __attribute__((ms_struct)) bar {
        BAR_A = 0,
        BAR_B,
        BAR_C
};

ms-bitfields-test.cpp:4:21: warning: 'ms_struct' attribute ignored
enum __attribute__((ms_struct)) bar {

Is this desired?

Jeremiah

________________________________

This message, including any attachments, may contain privileged and/or confidential information. Any distribution or use of this email by anyone other than the intended recipient(s) is strictly prohibited. If you are not the intended recipient, please notify the sender immediately and delete all copies. Thank you.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mms-bitfields.patch
Type: application/octet-stream
Size: 6249 bytes
Desc: mms-bitfields.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121008/8ca4214d/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mms-bitfields-1.c
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121008/8ca4214d/attachment.c>


More information about the cfe-commits mailing list