]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[AutoFDO] Fix profile bootstrap for x86_64
authorKugan Vivekanandarajah <kvivekananda@nvidia.com>
Mon, 9 Jun 2025 23:19:37 +0000 (09:19 +1000)
committerKugan Vivekanandarajah <kvivekananda@nvidia.com>
Mon, 9 Jun 2025 23:19:37 +0000 (09:19 +1000)
This patch fixes profile bootstrap for x86_64 by special
caseing cpu_type for x86_64 as it shares AUTO_PROFILE
from i386.

ChangeLog:

* configure.ac: Special case cpu_type for x86_64.
* configure: Regenerate.

Signed-off-by: Kugan Vivekanandarajah <kvivekananda@nvidia.com>
configure
configure.ac

index ed1e5a4e8187116855238322a52c388f0520fc07..8ec8a9f111b52e689aa4565abe9ea71f93ef256e 100755 (executable)
--- a/configure
+++ b/configure
@@ -3397,6 +3397,10 @@ case "${target}" in
 esac
 
 cpu_type=`echo ${host} | sed 's/-.*$//'`
+# Special case cpu_type for x86_64 as it shares AUTO_PROFILE from i386.
+if test "${cpu_type}" = "x86_64" ; then
+  cpu_type="i386"
+fi
 
 
 # Disable libssp for some systems.
index 33c130f4e02a109d0e1364cfb7121e8a52ca3c82..5fa101f77fd4d0bf7ac3434877393f67603f854a 100644 (file)
@@ -622,6 +622,10 @@ case "${target}" in
 esac
 
 cpu_type=`echo ${host} | sed 's/-.*$//'`
+# Special case cpu_type for x86_64 as it shares AUTO_PROFILE from i386.
+if test "${cpu_type}" = "x86_64" ; then
+  cpu_type="i386"
+fi
 AC_SUBST(cpu_type)
 
 # Disable libssp for some systems.