<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/87454>87454</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-10 build project with flag -flto Core dump.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Airbala
</td>
</tr>
</table>
<pre>
I am actually using Xtensa DSP clang compiler, I use -flto flag to optimize my code,when link my program, it has a core dump failure as below. It confuses me a lot. Then I change the flag into -flto=thin, and it seems work well, But I'm worried that the code performance would decrease. Can Anybody help me this problem?

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkk2rpDoQhn9N3BQtMdG2Xbjojys0lwsXZhazLZNSc05MnCSepufXD9pzGGY5G4UUvPXUy4MxmtERtay6sOqW4ZomH9qzCT1azHqvn-0dcAZUaUVrn7BG40b4lshFhNuX_0FZdCMoPy_GUmDiCndYI8FhsMnDYHGE5MEvyczmB8H8BOU1sX86drmy0_UxkQNr3Ps2WYIfA85biEkwYQQE5QOBXucFBjR2DQQYoSfrHzncEyjvhjVShJkAwfqUw9ct8g5qQjcSpIleFMYl_6Ji8pYm47Y16PS2KhLNER4-vMODrN0mlzXBnYl63p6DIQ1pwrTHbQfAQmHwYUanCB5-tRo0qUAYKYcrOji751YfTGSXDS5NJm4H9pZmJjtg_Mb4-Y-vKFh1eRPv3z_mGP77l1U3Jk5TSktk8sxEx0Q3mjStfa78zERn7cfn77AE_0YqMdFhjJQiE51sRFEXsmKiK3WJmsviwDk_HUpB8tBX1fFQ1s2RRM-HptRMNC-OTLdSN7LBjNqiLkQhSlHIbGoHXqkjx7I5Fo08HZuhEKe64lpURV0o0WemFVyUvOSSH7mUMifOtSpOQ69Iq1oQKznNaGy-Mec-jJmJcaX2VJdVmVnsycbdRSEcPWAfMiE2NUO739mvY2Qltyam-DslmWSp3VU8FBz61VgNvyqBh0nTS4GXk9dPo3LI1mDbv254x9oa3rF_BgAA__928Axy">