> On 9 Sep 2024, at 10:34 PM, Andi Kleen <a...@linux.intel.com> wrote:
> 
> External email: Use caution opening links or attachments
> 
> 
> Andi Kleen <a...@linux.intel.com> writes:
> 
> Ping^4
> 
> Could someone please approve this (nearly trivial) patch?
> 
> Thanks,
> -Andi
> 
>> Andi Kleen <a...@linux.intel.com> writes:
>> 
>> Ping^3
>> 
>>> Andi Kleen <a...@linux.intel.com> writes:
>>> 
>>> PING^2 for the patch.
>>> 
>>> (not sure if there is any maintainer to cc here, this is generic build 
>>> infrastructure)
>>> 
>>>> Andi Kleen <a...@linux.intel.com> writes:
>>>> 
>>>> I wanted to ping this patch:
>>>> 
>>>> https://gcc.gnu.org/pipermail/gcc-patches/2024-July/658729.html
>>>> 
>>>> 
>>>>> From: Andi Kleen <a...@gcc.gnu.org>
>>>>> 
>>>>> ... that uses -march=native -mtune=native to build a compiler optimized
>>>>> for the host.
>>>>> 
>>>>> config/ChangeLog:
>>>>> 
>>>>>   * bootstrap-native.mk: New file.
>>>>> 
>>>>> gcc/ChangeLog:
>>>>> 
>>>>>   * doc/install.texi: Document bootstrap-native.
>>>>> ---
>>>>> config/bootstrap-native.mk | 1 +
>>>>> gcc/doc/install.texi       | 6 ++++++
>>>>> 2 files changed, 7 insertions(+)
>>>>> create mode 100644 config/bootstrap-native.mk
>>>>> 
>>>>> 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 ? 

>>>>> 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.” 


>>>>> @item @samp{bootstrap-lto}
>>>>> Enables Link-Time Optimization for host tools during bootstrapping.
>>>>> @samp{BUILD_CONFIG=bootstrap-lto} is equivalent to adding

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to