Commit e66bda1
committed
v3: keep
The MSVC preamble defines `__attribute__` away, which also dropped the
`__attribute__((aligned(N)))` suffix of `@[aligned]` structs. For MSVC,
emit `__declspec(align (N))` between the tag and the name instead (16 for
a bare `@[aligned]`, GCC's meaning on x86-64 and arm64), as in
testdata/aligned_attr_msvc_windows.c.must_have. Map `__alignof__`, used
for heap copies of such structs, to MSVC's `__alignof`.@[aligned] struct alignment under MSVC1 parent 7494bbb commit e66bda1
3 files changed
Lines changed: 62 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18154 | 18154 | | |
18155 | 18155 | | |
18156 | 18156 | | |
| 18157 | + | |
| 18158 | + | |
18157 | 18159 | | |
18158 | 18160 | | |
18159 | 18161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
205 | 242 | | |
206 | 243 | | |
207 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4500 | 4500 | | |
4501 | 4501 | | |
4502 | 4502 | | |
| 4503 | + | |
| 4504 | + | |
| 4505 | + | |
| 4506 | + | |
| 4507 | + | |
| 4508 | + | |
| 4509 | + | |
| 4510 | + | |
4503 | 4511 | | |
4504 | 4512 | | |
4505 | 4513 | | |
| |||
6406 | 6414 | | |
6407 | 6415 | | |
6408 | 6416 | | |
6409 | | - | |
| 6417 | + | |
| 6418 | + | |
| 6419 | + | |
| 6420 | + | |
| 6421 | + | |
| 6422 | + | |
| 6423 | + | |
| 6424 | + | |
| 6425 | + | |
| 6426 | + | |
| 6427 | + | |
| 6428 | + | |
| 6429 | + | |
| 6430 | + | |
6410 | 6431 | | |
6411 | 6432 | | |
6412 | 6433 | | |
6413 | 6434 | | |
6414 | 6435 | | |
6415 | 6436 | | |
6416 | | - | |
| 6437 | + | |
6417 | 6438 | | |
6418 | 6439 | | |
6419 | 6440 | | |
| |||
0 commit comments