On Tue, Sep 10, 2024 at 03:29:08AM +0000, Ramana Radhakrishnan wrote:
> >>>>> diff --git a/config/bootstrap-native.mk b/config/bootstrap-native.mk
> >>>>> new file mode 100644
> >>>>> index 000000000000..a4a3d8594089
> >>>>> --- /dev/null
> >>>>> +++ b/config/bootstrap-native.mk
> >>>>> @@ -0,0 +1 @@
> >>>>> +BOOT_CFLAGS := -march=native -mtune=native $(BOOT_CFLAGS)
> 
> Does every port have a -march=native + -mtune=native that behaves the same 
> way as what is expected here ? 

Not all of them do, but it's getting somewhat common with popular ones.

> 
> >>>>> diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
> >>>>> index 4973f195daf9..29827c5106f8 100644
> >>>>> --- a/gcc/doc/install.texi
> >>>>> +++ b/gcc/doc/install.texi
> >>>>> @@ -3052,6 +3052,12 @@ Removes any @option{-O}-started option from 
> >>>>> @code{BOOT_CFLAGS}, and adds
> >>>>> @itemx @samp{bootstrap-Og}
> >>>>> Analogous to @code{bootstrap-O1}.
> >>>>> 
> >>>>> +@item @samp{bootstrap-native}
> >>>>> +@itemx @samp{bootstrap-native}
> >>>>> +Optimize the compiler code for the build host, if supported by the
> >>>>> +architecture. Note this only affects the compiler, not the targeted
> >>>>> +code. If you want the later use @samp{--with-cpu}.
> >>>>> +
> 
>  The defaults suitable for a port can be different , for instance on AArch32 
> additional options to specify float abi and floating point units might be 
> required.
>  I would suggest rewriting this to something like .  “If you want the later , 
> choose options suitable to the target you are looking for.  For e.g. 
> @samp{--with-cpu} would be a good starting point.” 

Ok.

-Andi

Reply via email to