summaryrefslogtreecommitdiff
path: root/cross/aarch64-none-elf-gcc/patches/patch-gcc_config_aarch64_aarch64.h
diff options
context:
space:
mode:
Diffstat (limited to 'cross/aarch64-none-elf-gcc/patches/patch-gcc_config_aarch64_aarch64.h')
-rw-r--r--cross/aarch64-none-elf-gcc/patches/patch-gcc_config_aarch64_aarch64.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/cross/aarch64-none-elf-gcc/patches/patch-gcc_config_aarch64_aarch64.h b/cross/aarch64-none-elf-gcc/patches/patch-gcc_config_aarch64_aarch64.h
index 128d68aebaf..2b7c9ccc6de 100644
--- a/cross/aarch64-none-elf-gcc/patches/patch-gcc_config_aarch64_aarch64.h
+++ b/cross/aarch64-none-elf-gcc/patches/patch-gcc_config_aarch64_aarch64.h
@@ -1,11 +1,6 @@
-$NetBSD: patch-gcc_config_aarch64_aarch64.h,v 1.2 2018/11/23 05:30:45 ryoon Exp $
+$NetBSD: patch-gcc_config_aarch64_aarch64.h,v 1.3 2022/04/15 16:56:07 tnn Exp $
-driver-aarch64.o is not included for NetBSD and it is responsible for
-the definition of host_detect_local_cpu.
-
-Without it, we get an undefined reference.
-
-Similar to GCC bugzilla #77800 for arm.
+Disable -march=native for cross compilers.
--- gcc/config/aarch64/aarch64.h.orig 2018-02-21 14:05:45.000000000 +0000
+++ gcc/config/aarch64/aarch64.h
@@ -15,7 +10,7 @@ Similar to GCC bugzilla #77800 for arm.
-#if defined(__aarch64__)
+/* NetBSD does not export necessary info via /proc/cpuinfo. */
-+#if defined(__aarch64__) && !defined(__NetBSD__)
++#if defined(__aarch64__) && !defined(CROSS_DIRECTORY_STRUCTURE)
extern const char *host_detect_local_cpu (int argc, const char **argv);
#define HAVE_LOCAL_CPU_DETECT
# define EXTRA_SPEC_FUNCTIONS \