[PATCH] D24998: Add a new optimization option -Og

Renato Golin via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 4 05:56:28 PDT 2016


rengolin added reviewers: echristo, dberlin, keith.walker.arm.
rengolin added a comment.

Hi Sylvestre,

Paul's comments on the bug are still pertinent: `-Og` is not the same as `-O1`.

`-Og` means for "optimised for debuggers" which is short for "preserve the debug illusion without bloating the code". This is not at all what `-O1` is, even though they're used indistinguishably via `-O1 -g`.

As a stop-gap, I guess having `-Og == -O1` would stop errors from being reported, but if we could do a quick assessment on the list to make sure this has the expected semantics (and adding a full new option if not), would be the best way forward.

I'm adding a few debug folks here, in hope they have a better idea (and would add more folks, if necessary). :)

cheers,
--renato


https://reviews.llvm.org/D24998





More information about the cfe-commits mailing list