<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56378>56378</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang: "-save-temps -g" option leads to "warning: inconsistent use of MD5 checksums"
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
hurryman2212
</td>
</tr>
</table>
<pre>
Clang version: 14.0.0-1ubuntu1 (target: x86_64-pc-linux-gnu)
How to reproduce the issue: Build any source with ```-save-temps -g```, then ```warning: inconsistent use of MD5 checksums``` will be generated in assembly stage.
The root cause for this is probably that the output assembly for ```-save-temps -g``` holds two ```.file``` directives (with/without build directory", but only the above one holds MD5 sequence.
Output assembly format:
```
foo: # @foo
.Lfunc_begin0:
.file 0 "/your/path/your/project" "FILE.c" md5 <MD5_SEQUENCE>
.file 1 "FILE.c"
...
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVU11vmzAU_TXwYoHABJI88NCmiTap2zRtfa6MfQFvxs78kTT_ftekabr2oRpCWOZ-nXPuvZ0Rp3ajmB7IAayTRifVDSkXeZEXWRm6oH0oSUJXntkBfDQ-rZrHZpHteaakDk_ZoENC10lxlxQ35-8ncyTeEAt7a0TgQPwIRDoXIMbfBqkEYfpEnAkWrUfpR5I0xfnNHDtA5mHaO5INL78Tuolp9NXxyKyWeogppeZGO-k8aE-CA2J68uWuJnwE_tuFyb0EYTGlSAdkAA2WeRAYTJhzMHUKEXk2QP6ay0-Ebo3xhLOYuDcWYUiHdAiy61iM8iPzM0cT_D74a7ro_RExMholHPFHc3XNe6ng6iGkBe7lAVzsRJQrobt4YD3SzXKeXYw9JZRGqTq0GD1jA8I6c0BwGp5rRWkc_Amg-YXst_fIJxbb_VqLazPma29MFP_jJ6EVSRZF9J8D8_s-aP7YwSB18arG-sy7WBdkprE74YDgsWcz48vNml_IFT2i1-7z_Tbn8TKJmiTVBsk9_th-f9h-3WyTavsud_lP1Nl8AZrn-RumqWgrsa7WLPXSK2h5XJXIGmPfNBQhmL3HDSIKWOyoiU7_NaWUpsGqdvR-76IudIfvgI0OXc7NhBelDpcjexFiN-8Whu_qplqu0rFlvF_3bCmqAsq-oVRAj6PawaIX9VIInirWgXJtUt9iUQ3H5_VEQeq7VLa0oLRYFnWxqqqyzsuiZILTpusaJti6wWbCxKTKI47c2CG17QypC4NDo0KS7mrEqZKDBpjLYX4WcHRtOwZrTxPTlJY0neu3M_6_YQ5kxw">