[vlc-devel] [PATCH v2 1/2] contrib: Use -Og instead of -O0
remi at remlab.net
Fri Jun 14 15:33:41 CEST 2019
Le vendredi 14 juin 2019, 11:58:10 EEST Hugo Beauzée-Luyssen a écrit :
> On Fri, Jun 14, 2019, at 9:15 AM, Rémi Denis-Courmont wrote:
> > Ack.
> > VLC itself cannot even compile with O0 due to shortage of registers on
> > x86. More importantly, we want debug to be as close as possible to
> > normal code, and that's the whole point of Og.
> While I agree -Og seems like the correct option, most if not all of my
> builds are built with -O0, it builds and runs fine. If it so happens that
> -Og confuses clang, I'm fine with having it gated to use -O0 though.
It's not a question of whether it runs fine. It's a question of what debug
builds should be. IMO, they should be as close as possible to normal build.
O0 turns off tons of optimizations, thus hiding(causing) a lot of (Heisen)bugs.
More information about the vlc-devel