<br><br><div class="gmail_quote">On Sat, Jun 2, 2012 at 2:13 AM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.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="gmail_quote"><div><div class="h5">On Fri, Jun 1, 2012 at 1:53 PM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@apple.com" target="_blank">echristo@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><div><br>
On Jun 1, 2012, at 12:37 PM, Alexey Samsonov <<a href="mailto:samsonov@google.com" target="_blank">samsonov@google.com</a>> wrote:<br>
<br>
><br>
><br>
> On Fri, Jun 1, 2012 at 9:58 PM, Eric Christopher <<a href="mailto:echristo@apple.com" target="_blank">echristo@apple.com</a>> wrote:<br>
><br>
> On Jun 1, 2012, at 2:10 AM, Alexey Samsonov <<a href="mailto:samsonov@google.com" target="_blank">samsonov@google.com</a>> wrote:<br>
><br>
> > Hi, cfe-commits!<br>
> ><br>
> > This patch improves support for different -g options:<br>
> > 1) Flags -ggdb{0,2,3}, -gdwarf-{2,3,4} are now supported and translated to "-g" (except -ggdb0).<br>
> > 2) Flag -gtoggle is supported.<br>
> > 3) Flags -g[no-]record-gcc-switches and -g[no-]strict-dwarf are supported and ignored.<br>
> > 4) Flags for alternate debug formats (-gcoff*, -gxcoff*, -gstabs*, -gvms*) are marked as unsupported and produce an error.<br>
><br>
> ... what on earth is -gtoggle for?<br>
><br>
> Or do you mean Clang doesn't need to support this one?<br>
><br>
<br>
</div></div>I'm ok with it not supporting it. That's just silly. If you've got a use for it I don't necessarily mind though.</blockquote><div><br></div></div></div><div>I see no use for it. Let's not support it, ideally by rejecting it (as it should theoretically have an impact on the output that we won't reproduce. </div>

</div>
</blockquote></div><br>Agree. Marked -gtoggle as unsupported as well. What do you think of -g1/-ggdb1 options? AFAIR, Clang can't emit debug info of that level,<div>should we be more strict than just printing "arugment unused during compilation" warning as we do now?<br>
<div><br><div><a href="http://codereview.appspot.com/6250082/">http://codereview.appspot.com/6250082/</a><br><div><div><div><br></div>-- <br><div>Alexey Samsonov, MSK</div><br>
</div></div></div></div></div>