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

Tom Rini trini at konsulko.com
Sat Mar 26 03:46:08 CET 2022


On Tue, Feb 22, 2022 at 12:19:25PM -0500, Sean Anderson 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>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/next, thanks!

-- 
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/20220325/7875e873/attachment.sig>


More information about the U-Boot mailing list