Martin =?utf-8?q?Storsjö?= <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>
AaronBallman wrote:
> Thanks! That seems to work great!
>
> However - that uncovers a case in the existing tests in this PR, which starts
> failing:
>
> ```
> #pragma ms_struct on
> struct {
> int a : 24;
> char b : 8;
> } __attribute__((gcc_struct)) t2;
> _Static_assert(sizeof(t2) == 4, "");
> #pragma ms_struct off
> ```
>
> This now also hits the same error with incompatible attributes. This is a
> case I think should be supported; just like `-mms-bitfields` or
> `-mno-ms-bitfields`, such a pragma sets the default over a region, while one
> may want to override the default for specific structs.
Oof. I didn't realize we had that as a pragma. :-/ Yeah, I think the expected
priority is: local takes precedence over pragma takes precedence over command
line. So you may have to do the exclusion the hard way (manually).
https://github.com/llvm/llvm-project/pull/71148
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits