Hi Honza,

> On 6 Jun 2025, at 6:34 pm, Jan Hubicka <hubi...@ucw.cz> wrote:
> 
> External email: Use caution opening links or attachments
> 
> 
>> Kugan Vivekanandarajah <kvivekana...@nvidia.com> writes:
>>> Add support for autoprofiledbootstrap in aarch64.
>>> This is similar to what is done for i386. Added
>>> gcc/config/aarch64/gcc-auto-profile for aarch64 profile
>>> creation.
>>> 
>>> How to run:
>>> configure --with-build-config=bootstrap-lto
>>> make autoprofiledbootstrap
>>> 
>>> ChangeLog:
>>> 
>>>    * Makefile.def: AUTO_PROFILE based on cpu_type.
>>>    * Makefile.in: Likewise.
>>>    * configure: Regenerate.
>>>    * configure.ac: Set autofdo_target.
>>> 
>>> gcc/ChangeLog:
>>> 
>>>    * config/aarch64/gcc-auto-profile: New file.
>>> 
>>> Signed-off-by: Kugan Vivekanandarajah <kvivekana...@nvidia.com>
>> 
>> OK, thanks.
> This breaks autoprofiledbootstrap on i386.
> /home/jh/trunk/gcc/config/x86_64/gcc-auto-profile
> cpu_type is x86_64, but directory name is i386.
> I am not sure what is best way to fix this...
I messed that. Sorry for the breakage.

Should  I go with:

+autofdo_target
 
+autofdo_target="i386"
+case "${target}" in
+  aarch64-*-*)
+    autofdo_target="aarch64"
+    ;;
+esac

As in the first version? I can test and send a patch for review if there is no 
other better alternative.


Thanks,
Kugan

> 
> Honza
>> 
>> Richard

Reply via email to