<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div><br></div><div>On Thu, Jun 18, 2020, at 10:51, Rémi Denis-Courmont wrote:<br></div><blockquote type="cite" id="qt" style=""><div>-O0 fails compile inline assembler on routine basis, disables optimisations that are likely to cause bugs (thus making debugging impossible anyway), and has terrible performance.<br></div><div><br></div><div>What's the point debugging a build that nothing to do with the production build?<br></div><div><br></div><div>Even -O0 can break tracing if you mess the stack enough. -Og is fine as long as you don't force some other trace-inhibiting parameters such as omit-frame-pointer.<br></div></blockquote><div><br></div><div>I agree with you, specially if you want to debug race conditions.<br></div><div><br></div><div>But I already encountered unknow symbols in -Og builds, but it was maybe a PEBKAC.</div><div><br></div><blockquote type="cite" id="qt" style=""><div><br></div><div class="qt-gmail_quote"><div>Le 18 juin 2020 11:33:18 GMT+03:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<br></div><blockquote class="qt-gmail_quote" style="margin-top:0pt;margin-right:0pt;margin-bottom:0pt;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;"><pre class="qt-k9mail"><div>On 2020-06-17 20:23, Rémi Denis-Courmont wrote:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0pt;margin-right:0pt;margin-bottom:1ex;margin-left:0.8ex;border-left-color:rgb(114, 159, 207);border-left-style:solid;border-left-width:1px;padding-left:1ex;"><div>Le keskiviikkona 17. kesäkuuta 2020, 18.10.17 EEST Steve Lhomme a écrit :<br></div><blockquote class="qt-gmail_quote" style="margin-top:0pt;margin-right:0pt;margin-bottom:1ex;margin-left:0.8ex;border-left-color:rgb(173, 127, 168);border-left-style:solid;border-left-width:1px;padding-left:1ex;"><div>Fun fact, it is fine when built in release mode. Probably the -O2 that<br></div><div>makes things easier. So I could force this flag for llvm-i686 in debug<br></div><div>builds.<br></div></blockquote><div>This has nothing to do with Win32. Even *VLC* can't build without<br></div><div>optimisations on Linux/386 due to register shortage. Most likely not FFmpeg<br></div><div>either.<br></div><div><br></div><div>As noted several times before, compiling with -O0 is _*STUPID*_, especially on<br></div><div>386. If you want debugable code, use -Og or equivalent.<br></div></blockquote><div><br></div><div> From my experience using -Og still has cases where you can't debug some <br></div><div>code. Only -O0 ever worked reliably for me.<hr>vlc-devel mailing list<br></div><div>To unsubscribe or modify your subscription options:<br></div><div><a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a><br></div></pre></blockquote></div><div><br></div><div>-- <br></div><div>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté. <br></div><div>_______________________________________________<br></div><div>vlc-devel mailing list<br></div><div>To unsubscribe or modify your subscription options:<br></div><div><a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a><br></div></blockquote><div><br></div></body></html>