<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/58100>58100</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            -Wpadded does nothing when targeting windows
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          henke96
      </td>
    </tr>
</table>

<pre>
    test.c:
```c
struct {
    long a;
    char b;
} c;
```
If you compile it with `clang -target x86_64-unknown-linux-elf -Wpadded -c test.c` you get the warning `test.c:1:1: warning: padding size of 'struct (unnamed at test.c:1:1)' with 7 bytes to alignment boundary [-Wpadded]` as expected.

However, if you target MS abi with `clang -target x86_64-unknown-windows-coff -Wpadded -c test.c` there is no warning at all. Note that it happens in real code too, where the struct is actually used. This is just a minimal example.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNUsGOmzAQ_Rq4jEBgAiQHDruNqvbQXlqpx8rYA3jX2AjbS9Kv7wBJtqpUqcgQvxnnzZs3bq28Nh6dT0VUPEXZOcqeoirbl9ix83MQHqL6ecdAj7amBx4Vf4TEwGdoH6GoPoN4R3fOHX7u4GoDCDtOSiMoD4vyA6w1NSfmxPO5Rw-XY_WzOiTBvBq7mEQrEy4J6g6SHxOXEiUkAm7yq2zjXP_mB4SFz0YRFcUf_eW3955ctyvPes6pXwi2g4jV94bZMRjDR6rCPfxFwk50cFddQ3ulLHgLXKvejGg8tDYYyecrROXzXWxUnleV3AFeJhQeZXpzZ_t-sgu-4RyxD6B2f24ufPkGvFX_Z9GijLSLS4Tt_uUSuTOT5w6MfbhEDXKtU_hqPdIBgjSTgU8TGgfKwIxc07gkJa1dFS4byWr0zS3i48IHYrlCcNQafB8oRuslOGKHURk1Egte-DhpTGNs8qo6VIe8LKtYNoU8FScee-U1Ng_l0uIq1A-rSipqbqZscO81DrNuBu8nt15h9pFWT1aFNqX7RUDrt_tPMs32hZwnqJwL6GhTHvMsi4cmZ1UpuCzzo2D1QZasrLO8aI95ccoly7tY8xa1a2igEWMGF9goaE9zjVXDMsaIKc8rRg2lTEp5rDvshCjrosijQ4YjVzpddaR27uO52SS1oXeU1Mp5957kztFVQtzKET8PfrBzQwa84qmKt9LNJv03KokyuA">