Commit 9768698e authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Do not detect host automatically

parent c418efb2
...@@ -111,6 +111,9 @@ ...@@ -111,6 +111,9 @@
<exec executable="patch" dir="${builddir}/gcc-11.1.0" failonerror="true"> <exec executable="patch" dir="${builddir}/gcc-11.1.0" failonerror="true">
<arg line="-Np1 -i ${basedir}/packages/gcc/gcc-11.1.0-fix_fenv_t.patch"/> <arg line="-Np1 -i ${basedir}/packages/gcc/gcc-11.1.0-fix_fenv_t.patch"/>
</exec> </exec>
<exec executable="patch" dir="${builddir}/gcc-11.1.0" failonerror="true">
<arg line="-Np1 -i ${basedir}/packages/gcc/gcc-11.1.0-fix_host_detect.patch"/>
</exec>
<exec executable="bash" dir="${builddir}/gcc-11.1.0" failonerror="true"> <exec executable="bash" dir="${builddir}/gcc-11.1.0" failonerror="true">
<arg value="-c"/> <arg value="-c"/>
<arg value="sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&amp;@g' -e 's@/usr@/tools@g' -i gcc/config/linux.h"/> <arg value="sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&amp;@g' -e 's@/usr@/tools@g' -i gcc/config/linux.h"/>
......
diff -uNr gcc-11.1.0/gcc/config/aarch64/aarch64.h gcc-11.1.0-fix_host_detect/gcc/config/aarch64/aarch64.h
--- gcc-11.1.0/gcc/config/aarch64/aarch64.h 2021-04-27 20:00:13.000000000 +1000
+++ gcc-11.1.0-fix_host_detect/gcc/config/aarch64/aarch64.h 2025-11-17 10:38:36.782562378 +1100
@@ -1236,21 +1236,8 @@
#define MCPU_TO_MARCH_SPEC_FUNCTIONS \
{ "rewrite_mcpu", aarch64_rewrite_mcpu },
-#if defined(__aarch64__)
-extern const char *host_detect_local_cpu (int argc, const char **argv);
-#define HAVE_LOCAL_CPU_DETECT
-# define EXTRA_SPEC_FUNCTIONS \
- { "local_cpu_detect", host_detect_local_cpu }, \
- MCPU_TO_MARCH_SPEC_FUNCTIONS
-
-# define MCPU_MTUNE_NATIVE_SPECS \
- " %{march=native:%<march=native %:local_cpu_detect(arch)}" \
- " %{mcpu=native:%<mcpu=native %:local_cpu_detect(cpu)}" \
- " %{mtune=native:%<mtune=native %:local_cpu_detect(tune)}"
-#else
-# define MCPU_MTUNE_NATIVE_SPECS ""
-# define EXTRA_SPEC_FUNCTIONS MCPU_TO_MARCH_SPEC_FUNCTIONS
-#endif
+#define MCPU_MTUNE_NATIVE_SPECS ""
+#define EXTRA_SPEC_FUNCTIONS MCPU_TO_MARCH_SPEC_FUNCTIONS
#define ASM_CPU_SPEC \
MCPU_TO_MARCH_SPEC
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment