<div dir="ltr">Hello all,<div><br></div><div>I've found an old post (November 2016) <a href="http://lists.llvm.org/pipermail/llvm-dev/2016-November/107006.html">http://lists.llvm.org/pipermail/llvm-dev/2016-November/107006.html</a> which discussed debug information for optimized code. At the end of that discussion, Adrian broached <span style="color:rgb(0,0,0);white-space:pre-wrap">the interest in making -O1 only enable optimizations. I see in the code (<b>clang/lib/Frontend/CompilerInvocation.cpp</b>, in function <b>getOptimizationLevel</b>) that <b>-Og</b> option is equivalent to <b>-O1</b>. Does this mean any progress on making <b>-O1</b> the GCC's <b>-Og</b>? If not, would someone kindly tell me what is holding the debuggability at <b>-O1</b> back? Which optimization passes are removing our debug info at this <b>-O1</b> level?</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">Thank you for your help,</span></div><div><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Son Tuan Vu</div></div></div>
</div></div>