<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 16, 2013 at 8:06 PM, Adrian Prantl <span dir="ltr"><<a href="mailto:aprantl@apple.com" target="_blank">aprantl@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On Dec 16, 2013, at 4:54 PM, Greg Clayton <<a href="mailto:gclayton@apple.com">gclayton@apple.com</a>> wrote:<br>
<br>
><br>
> On Dec 16, 2013, at 2:55 PM, David Blaikie <<a href="mailto:dblaikie@gmail.com">dblaikie@gmail.com</a>> wrote:<br>
><br>
>><br>
>><br>
>><br>
>> On Mon, Dec 16, 2013 at 2:44 PM, Adrian Prantl <<a href="mailto:aprantl@apple.com">aprantl@apple.com</a>> wrote:<br>
>> Hi Chandler and David,<br>
>><br>
>> unfortunately it looks more like case 1. This optimization breaks several assumptions that tools in our software stack depend on.<br>
>><br>
>> It's a fairly substantial debug info size savings that seems worth investigating whether you can keep it enabled at least in<br>
>><br>
>> - For example, it breaks dtrace, which on Darwin relies on being able to pull the (complete) CTF info (compact C type format) out of the DWARF in the .dSYM for a given module.<br>
>><br>
>> I take it you're already using -fno-limit-debug-info for these scenarios, then? (are you using -flimit-debug-info at all?)<br>
><br>
> Yes, this is what will need to happen now that clang has changed.<br>
<br>
</div>In case this wasn't clear enough: Currently, this optimization is totally orthogonal to limited debug info. Passing -fno-limit-debug-info will not make any of these examples work. This thread is about adding an additional flag to the frontend that controls this optimization.<br>

<br>
I guess we could make also it part of -flimit-debug-info, either way will work.</blockquote><div><br>Agreed. Though I'd rather separate it from -flimit-debug-info. -flimit-debug-info is more aggressive. But, yes, for this particular kernel scenario, if you do end up needing to disable the vtable-based optimization, you should already be disabling -flimit-debug-info.<br>
<br>- David </div></div></div></div>