<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/55520>55520</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm 14 warns with unaligned access for the packed struct.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
UmeshKalappa0
</td>
</tr>
</table>
<pre>
llvm 14 warns like
<source>:24:11: warning: field srcSyncOrNvDdr within 'struct info' is less aligned than 'union (unnamed union at <source>:9:5)' and is usually due to 'struct info' being packed, which can lead to unaligned accesses [-Wunaligned-access]
} srcSyncOrNvDdr;
^
https://godbolt.org/z/89o76xsxb
llvm 13 doesn't warns for the same chunk of code .
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtUcGS2yAM_Rp80SSDcYjjgw-7m-2lM-2h0-kZgxzTEMgY2Gz69ZXtNN1m6jFCAkm899QFc22deztBuQG4qNFHAGePCIzvGX-62eolhjxqZNUrq57EhkxZkpkrrD9Mbm_RGYij_nb1-uv45W1vRrjYNFgPTNQxjVknsL4PFIGN4DBGUM4ePBpIg5rTsrdhcnbZe3Wii-VAJXgA0dCSTDRTM-XN1DDHrJy7gskIKfzn0Q4JK5yVPqJh4gUug9UDaHrZoTJTTfZ_ACmtCR9GYPJ59eN-vlrOmdwv0sDtY_X-gTurnv9NoST5-lHWIaVzJBpMfKL_EEwXXFqH8UDRL1q7JtTb9_jefSxahlWBCRg9kUq3qfVhJBERIqkGesj-CKEHHQzCeqksTFuZpmpUkWxyeB_7Uj9N6gP9G_9720U0WARdF3l07QN8qs_dWocTBVPr27Y6j-En6kShjTFjJEdKKXgxtNu6lhI56nonednxzY73omlEX0uDmneFUx262NIImBAeLzC3IJ_0L2wruBBcljXfiprX606bsitlw2W_bTa1YBuOJ2XdesIx6VqMM-lVlw-RLp2NKf69VDFO3HF-jvqrnIYwtt9PGIfPyqnzWfFiBtDOBH4DkCgE1Q">