<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64948>64948</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
-Og includes inlining optimizations harmful to debugging since 13.0
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jeremy-murphy
</td>
</tr>
</table>
<pre>
Clang 13.0 started to inline functions at `-Og`, which my colleagues consider makes debugging near impossible.
See this Godbolt for a comparison of 12.0, 13.0 and GCC 13.0: https://godbolt.org/z/WWq75G353
The release notes for 13.0 don't mention anything that leaps out to me as an explanation.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckstu5CwQhZ8Gb0ptEXzp7oUX-RM5yyz-kbIu47Ihw8VDwWQ6Tz-yO1Kk2YAQUKe-OgeZ7RqIBtH9J7rnCks2MQ3vlMjfTr6kzdyqKc634clhWOGhqSVwxpRphhzBBmcDwVKCzjYGBswgenl6XUUvhXqCD2O1AX8DHZ0jXAsx6BjYzpTA409imGkq62rDCoEwgfVbZLaTo1rIZyEf_yeCbCzDS5yn6DIsMQGCjn7DZDkGiAs8qPrQOxrEMMPL0_0gmkcwOW8smkehRqHG9V6mjmkVavwUanx7-3XuXpquuQve1x-GIJEjZIIQM_Ghe9SfYxDqnMFT2KkBwy2bHSAbzOAIN4ZY8j4gT4AMGID-bA4D7u-_uKp5aOZrc8WKhof-qi7dpbnKygz9Mmndtee2nzrZ60bOc4dLqxrZdVfs-soOSqpGXlQre9U3sm51R-1yVjgRXqb-IlpJHq2rnfvtd9DKMhca-vbaXiqHEzk-LFcq0Accl0KpPQFp2P-cprKyaKWznPm7SrbZ0XB6XcEG7cpMfE_Azh63bL39xHsODCa_FLeP4NtftkHTMcKqJDf8Y4vNpky1jl6ocVf82k5biu-ks1Dj0ScLNR4cfwMAAP__07rjkQ">