Commit 6e14580
committed
Interactions between bitfields and packed structs, continued
Reject bitfields in packed structs, like before.
If we let them through, the resulting CompCert C code implements a
strange layout (alignment of regular fields is reduced but alignment
of bitfields is unchanged) that is quite different from that of GCC.
It's better to reject.1 parent 901a0f3 commit 6e14580
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
0 commit comments