[PATCH 2/2] Add option to use -Og

Tom Rini trini at konsulko.com
Mon Mar 14 16:46:56 CET 2022


On Mon, Mar 14, 2022 at 11:36:54AM -0400, Sean Anderson wrote:
> 
> 
> On 3/11/22 9:25 PM, Simon Glass wrote:
> > On Tue, 22 Feb 2022 at 10:20, Sean Anderson <sean.anderson at seco.com> wrote:
> >>
> >> This adds support for using -Og when building U-Boot. According to the
> >> gcc man page:
> >>
> >> > -Og should be the optimization level of choice for the standard
> >> > edit-compile-debug cycle, offering a reasonable level of optimization
> >> > while maintaining fast compilation and a good debugging experience.
> >>
> >> This optimization level is roughly -O1 minus a few additional
> >> optimizations. It provides a noticably better debugging experience, with
> >> many fewer variables <optimized out>.
> >>
> >> Signed-off-by: Sean Anderson <sean.anderson at seco.com>
> >> ---
> >>
> >>  Kconfig  | 6 ++++++
> >>  Makefile | 4 ++++
> >>  2 files changed, 10 insertions(+)
> > 
> > Reviewed-by: Simon Glass <sjg at chromium.org>
> > 
> > But how about an update in doc/ ?
> 
> What should be updated? As far as I can tell, optimization level is not
> otherwise documented. IMO the Kconfig does a reasonable job of
> documentation.

A follow-up to note somewhere under doc/ about this would be good.  I'll
pick up the series for next soon.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220314/edb7da12/attachment.sig>


More information about the U-Boot mailing list