[Buildroot] [PATCH] Config.in: add -Ofast option

Yann E. MORIN yann.morin.1998 at free.fr
Mon Mar 26 16:12:40 UTC 2018


Thomas, All,

On 2018-03-25 22:40 +0200, Thomas Petazzoni spake thusly:
> On Sun, 25 Mar 2018 10:24:34 +0200, Yann E. MORIN wrote:
> > > +config BR2_OPTIMIZE_FAST
> > > +	bool "optimize for fast"  
> > 
> > -Ofast was introduced in gcc-4.6, so you need a dependency:
> >     depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
> 
> The "odd" thing being that menuconfig is organized as follows:
> 
>  Target options --->
>  Build options --->
>  Toolchain --->
> 
> The optimization level is selected in "Build options" and the compiler
> version is basically decided in "Toolchain".
> 
> So if you select -Ofast in Build options, and then go in Toolchain
> chose a < 4.6 compiler, your -Ofast selection would disappear.

Yeah, I know. But, as you ssay:

> But there's no good way around this, and using gcc < 4.6 is anyway very

... there's no good solution around this issue, and the case for gcc
before 4.6 is rare enough that we don't care abot those poor souls
anymore... :-/

> rare these days, so I also agree that the "depends on" you suggest is
> what makes the most sense.

Was that an Acked-by or a Reviewed-by? ;-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'


More information about the buildroot mailing list