pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/cross cross/*gcc: kludge in support for Darwin/aarch64...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f4c090a024aa
branches: trunk
changeset: 377035:f4c090a024aa
user: tnn <tnn%pkgsrc.org@localhost>
date: Fri Apr 15 16:56:06 2022 +0000
description:
cross/*gcc: kludge in support for Darwin/aarch64 hosts in old GCC packages
diffstat:
cross/aarch64-none-elf-gcc/distinfo | 5 +-
cross/aarch64-none-elf-gcc/patches/patch-gcc_config_aarch64_aarch64.h | 11 +----
cross/aarch64-none-elf-gcc/patches/patch-gcc_config_host-darwin.c | 18 ++++++++++
cross/arm-none-eabi-gcc/distinfo | 3 +-
cross/arm-none-eabi-gcc/patches/patch-gcc_config_host-darwin.c | 18 ++++++++++
cross/avr-gcc/distinfo | 3 +-
cross/avr-gcc/patches/patch-gcc_config_host-darwin.c | 18 ++++++++++
cross/h8300-elf-gcc/distinfo | 3 +-
cross/h8300-elf-gcc/patches/patch-gcc_config_host-darwin.c | 18 ++++++++++
cross/mipsel-none-elf-gcc/distinfo | 3 +-
cross/mipsel-none-elf-gcc/patches/patch-gcc_config_host-darwin.c | 18 ++++++++++
cross/or1k-none-elf-gcc/distinfo | 3 +-
cross/or1k-none-elf-gcc/patches/patch-gcc_config_host-darwin.c | 18 ++++++++++
cross/pdp11-aout-gcc/distinfo | 3 +-
cross/pdp11-aout-gcc/patches/patch-gcc_config_host-darwin.c | 18 ++++++++++
cross/powerpc-none-elf-gcc/distinfo | 4 +-
cross/powerpc-none-elf-gcc/patches/patch-gcc_config_host-darwin.c | 18 ++++++++++
cross/ppc-morphos-gcc-10/distinfo | 3 +-
cross/ppc-morphos-gcc-10/patches/patch-gcc_config_host-darwin.c | 18 ++++++++++
cross/xtensa-esp32-elf-gcc/distinfo | 3 +-
cross/xtensa-esp32-elf-gcc/patches/patch-gcc_config_host-darwin.c | 18 ++++++++++
21 files changed, 204 insertions(+), 20 deletions(-)
diffs (truncated from 410 to 300 lines):
diff -r 0cd123644d1c -r f4c090a024aa cross/aarch64-none-elf-gcc/distinfo
--- a/cross/aarch64-none-elf-gcc/distinfo Fri Apr 15 16:36:15 2022 +0000
+++ b/cross/aarch64-none-elf-gcc/distinfo Fri Apr 15 16:56:06 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 10:07:50 nia Exp $
+$NetBSD: distinfo,v 1.6 2022/04/15 16:56:06 tnn Exp $
BLAKE2s (gcc-8.2.0.tar.xz) = da01bca052fefd4f0677ab396afc72f2bbf85786ec86ba38c95cbb7e8daf28aa
SHA512 (gcc-8.2.0.tar.xz) = 64898a165f67e136d802a92e7633bf1b06c85266027e52127ea025bf5fc2291b5e858288aac0bdba246e6cdf7c6ec88bc8e0e7f3f6f1985f4297710cafde56ed
@@ -7,7 +7,8 @@
SHA512 (newlib-3.0.0.tar.gz) = d4730ce9a4fc4e62052e89d20d4a3855a103b3d1a2818e94c7a68626db285aa8db8e56a684103731916bfba3e581db88e3a93264034ea0f2880ee8976283c04f
Size (newlib-3.0.0.tar.gz) = 18168046 bytes
SHA1 (patch-contrib_download__prerequisites) = be9b02068b3d4d783e92bee66d480bb2bfe35a84
-SHA1 (patch-gcc_config_aarch64_aarch64.h) = e6536070ef4fe6cceb3df06d313b8666b8f404a9
+SHA1 (patch-gcc_config_aarch64_aarch64.h) = 7571479979f480ff1a1e7391e92fd30b1be99ac2
+SHA1 (patch-gcc_config_host-darwin.c) = bb6513d096bed62a3c40a6543c6c854e5c20ef9d
SHA1 (patch-gcc_system.h) = 72a75ff773b9b5f3d2f16f4ec7d29e032aba5f53
SHA1 (patch-libcc1_configure) = 0368733ddf79b109fcc7146b0baeb37ab31e634a
SHA1 (patch-libcc1_connection.cc) = 2acd56a6f62b29ed3f02eecb7bf103e4564a442c
diff -r 0cd123644d1c -r f4c090a024aa cross/aarch64-none-elf-gcc/patches/patch-gcc_config_aarch64_aarch64.h
--- a/cross/aarch64-none-elf-gcc/patches/patch-gcc_config_aarch64_aarch64.h Fri Apr 15 16:36:15 2022 +0000
+++ b/cross/aarch64-none-elf-gcc/patches/patch-gcc_config_aarch64_aarch64.h Fri Apr 15 16:56:06 2022 +0000
@@ -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 @@
-#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 \
diff -r 0cd123644d1c -r f4c090a024aa cross/aarch64-none-elf-gcc/patches/patch-gcc_config_host-darwin.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cross/aarch64-none-elf-gcc/patches/patch-gcc_config_host-darwin.c Fri Apr 15 16:56:06 2022 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-gcc_config_host-darwin.c,v 1.1 2022/04/15 16:56:07 tnn Exp $
+
+Add host hooks to allow hosting on Darwin/aarch64.
+The patch is done differently from the upstream fix in order to be small.
+Delete this patch when updating to GCC 12 or later.
+
+--- gcc/config/host-darwin.c.orig 2018-01-03 10:03:58.000000000 +0000
++++ gcc/config/host-darwin.c
+@@ -75,3 +75,9 @@ darwin_gt_pch_use_address (void *addr, s
+
+ return ret;
+ }
++
++#if defined(__aarch64__)
++#include "hosthooks.h"
++#include "hosthooks-def.h"
++const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER;
++#endif
diff -r 0cd123644d1c -r f4c090a024aa cross/arm-none-eabi-gcc/distinfo
--- a/cross/arm-none-eabi-gcc/distinfo Fri Apr 15 16:36:15 2022 +0000
+++ b/cross/arm-none-eabi-gcc/distinfo Fri Apr 15 16:56:06 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2021/10/26 10:07:51 nia Exp $
+$NetBSD: distinfo,v 1.12 2022/04/15 16:56:07 tnn Exp $
BLAKE2s (gcc-8.3.0.tar.xz) = 395b2851da05d2ee21dfe3ec95e33482b63aeea7d37db423ffb7ebefd6547499
SHA512 (gcc-8.3.0.tar.xz) = 1811337ae3add9680cec64968a2509d085b6dc5b6783fc1e8c295e3e47416196fd1a3ad8dfe7e10be2276b4f62c357659ce2902f239f60a8648548231b4b5802
@@ -8,6 +8,7 @@
Size (newlib-3.1.0.tar.gz) = 17958952 bytes
SHA1 (patch-contrib_download__prerequisites) = be9b02068b3d4d783e92bee66d480bb2bfe35a84
SHA1 (patch-gcc_config_arm_arm.h) = 6d8cc2474cf9e902c766281315b75d6aadc42ed1
+SHA1 (patch-gcc_config_host-darwin.c) = bb6513d096bed62a3c40a6543c6c854e5c20ef9d
SHA1 (patch-gcc_system.h) = 72a75ff773b9b5f3d2f16f4ec7d29e032aba5f53
SHA1 (patch-libcc1_configure) = 0368733ddf79b109fcc7146b0baeb37ab31e634a
SHA1 (patch-libcc1_connection.cc) = 2acd56a6f62b29ed3f02eecb7bf103e4564a442c
diff -r 0cd123644d1c -r f4c090a024aa cross/arm-none-eabi-gcc/patches/patch-gcc_config_host-darwin.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cross/arm-none-eabi-gcc/patches/patch-gcc_config_host-darwin.c Fri Apr 15 16:56:06 2022 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-gcc_config_host-darwin.c,v 1.1 2022/04/15 16:56:07 tnn Exp $
+
+Add host hooks to allow hosting on Darwin/aarch64.
+The patch is done differently from the upstream fix in order to be small.
+Delete this patch when updating to GCC 12 or later.
+
+--- gcc/config/host-darwin.c.orig 2018-01-03 10:03:58.000000000 +0000
++++ gcc/config/host-darwin.c
+@@ -75,3 +75,9 @@ darwin_gt_pch_use_address (void *addr, s
+
+ return ret;
+ }
++
++#if defined(__aarch64__)
++#include "hosthooks.h"
++#include "hosthooks-def.h"
++const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER;
++#endif
diff -r 0cd123644d1c -r f4c090a024aa cross/avr-gcc/distinfo
--- a/cross/avr-gcc/distinfo Fri Apr 15 16:36:15 2022 +0000
+++ b/cross/avr-gcc/distinfo Fri Apr 15 16:56:06 2022 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.14 2021/11/15 17:22:41 wiz Exp $
+$NetBSD: distinfo,v 1.15 2022/04/15 16:56:07 tnn Exp $
BLAKE2s (gcc-10.3.0.tar.xz) = 6d7c42f9386e5e32a3148122471cb207e5f65d7b5f53b3c9adba2d45a4f28715
SHA512 (gcc-10.3.0.tar.xz) = 2b2dd7453d48a398c29eaebd1422b70341001b8c90a62aee51e83344e7fdd8a8e45f82a4a9165bd7edc76dada912c932f4b6632c5636760fec4c5d7e402b3f86
Size (gcc-10.3.0.tar.xz) = 76692288 bytes
SHA1 (patch-contrib_download__prerequisites) = 16d02e5b026ce052b61eced69cfd6a627fea65f5
+SHA1 (patch-gcc_config_host-darwin.c) = ce5647dfb0bf93e222f30cdad3f00f5a4f633afc
SHA1 (patch-gcc_configure) = 613d33d859ec3f108046274d09396aeb344e04cf
diff -r 0cd123644d1c -r f4c090a024aa cross/avr-gcc/patches/patch-gcc_config_host-darwin.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cross/avr-gcc/patches/patch-gcc_config_host-darwin.c Fri Apr 15 16:56:06 2022 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-gcc_config_host-darwin.c,v 1.1 2022/04/15 16:56:07 tnn Exp $
+
+Add host hooks to allow hosting on Darwin/aarch64.
+The patch is done differently from the upstream fix in order to be small.
+Delete this patch when updating to GCC 12 or later.
+
+--- gcc/config/host-darwin.c.orig 2021-04-08 11:56:28.000000000 +0000
++++ gcc/config/host-darwin.c
+@@ -78,3 +78,9 @@ darwin_gt_pch_use_address (void *addr, s
+
+ return ret;
+ }
++
++#if defined(__aarch64__)
++#include "hosthooks.h"
++#include "hosthooks-def.h"
++const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER;
++#endif
diff -r 0cd123644d1c -r f4c090a024aa cross/h8300-elf-gcc/distinfo
--- a/cross/h8300-elf-gcc/distinfo Fri Apr 15 16:36:15 2022 +0000
+++ b/cross/h8300-elf-gcc/distinfo Fri Apr 15 16:56:06 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 10:07:53 nia Exp $
+$NetBSD: distinfo,v 1.5 2022/04/15 16:56:07 tnn Exp $
BLAKE2s (gcc-6.2.0.tar.bz2) = a11b22cf9748a09cecfa7a688f5b4840986932c8617042b56db955c08eb54d89
SHA512 (gcc-6.2.0.tar.bz2) = 1e8b826a3d44b9d5899309894e20c03abeb352bf3d273b8ad63af814c0ee2911f1a83ce1cd4cdd2d1cb0b3e3c34e9b7ae1b2ab83dfc649ee817ab05247c76198
@@ -6,5 +6,6 @@
BLAKE2s (newlib-2.4.0.tar.gz) = 7d83665cb71cd2b70f3723350539572e996d163fb22c15a8078f24748cd861bf
SHA512 (newlib-2.4.0.tar.gz) = c60665e793dce2368a5baf23560beb50f641e1831854d702d1d7629fb6e9200cf814527f29796792a3d2dff81afee4255723df99ceb0732f99dd9580a17d2ac0
Size (newlib-2.4.0.tar.gz) = 17574364 bytes
+SHA1 (patch-gcc_config_host-darwin.c) = 95c88d477a1687163f3430d0cf4470550d992d0a
SHA1 (patch-libcc1_connection.cc) = d32841d602cb4c71acd7f53a0a2f50dc501117a2
SHA1 (patch-libstdc++-v3_src_c++11_cow-stdexcept.cc) = 709efa4e8d287dbae16430f1f9917c2815494eb4
diff -r 0cd123644d1c -r f4c090a024aa cross/h8300-elf-gcc/patches/patch-gcc_config_host-darwin.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cross/h8300-elf-gcc/patches/patch-gcc_config_host-darwin.c Fri Apr 15 16:56:06 2022 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-gcc_config_host-darwin.c,v 1.1 2022/04/15 16:56:07 tnn Exp $
+
+Add host hooks to allow hosting on Darwin/aarch64.
+The patch is done differently from the upstream fix in order to be small.
+Delete this patch when updating to GCC 12 or later.
+
+--- gcc/config/host-darwin.c.orig 2016-01-04 14:30:50.000000000 +0000
++++ gcc/config/host-darwin.c
+@@ -75,3 +75,9 @@ darwin_gt_pch_use_address (void *addr, s
+
+ return ret;
+ }
++
++#if defined(__aarch64__)
++#include "hosthooks.h"
++#include "hosthooks-def.h"
++const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER;
++#endif
diff -r 0cd123644d1c -r f4c090a024aa cross/mipsel-none-elf-gcc/distinfo
--- a/cross/mipsel-none-elf-gcc/distinfo Fri Apr 15 16:36:15 2022 +0000
+++ b/cross/mipsel-none-elf-gcc/distinfo Fri Apr 15 16:56:06 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 10:07:55 nia Exp $
+$NetBSD: distinfo,v 1.4 2022/04/15 16:56:07 tnn Exp $
BLAKE2s (gcc-8.3.0.tar.xz) = 395b2851da05d2ee21dfe3ec95e33482b63aeea7d37db423ffb7ebefd6547499
SHA512 (gcc-8.3.0.tar.xz) = 1811337ae3add9680cec64968a2509d085b6dc5b6783fc1e8c295e3e47416196fd1a3ad8dfe7e10be2276b4f62c357659ce2902f239f60a8648548231b4b5802
@@ -7,6 +7,7 @@
SHA512 (newlib-3.1.0.tar.gz) = efc4c3ab7153387780d141386bca5d3e20c9d25ae3e6b87cf94c8df9d301ce5926dacdff9bd33aeb9781559d933c3d0ae77f4e5b46120d90792f75dbfde702c7
Size (newlib-3.1.0.tar.gz) = 17958952 bytes
SHA1 (patch-contrib_download__prerequisites) = be9b02068b3d4d783e92bee66d480bb2bfe35a84
+SHA1 (patch-gcc_config_host-darwin.c) = bb6513d096bed62a3c40a6543c6c854e5c20ef9d
SHA1 (patch-gcc_system.h) = 72a75ff773b9b5f3d2f16f4ec7d29e032aba5f53
SHA1 (patch-libcc1_configure) = 0368733ddf79b109fcc7146b0baeb37ab31e634a
SHA1 (patch-libcc1_connection.cc) = 2acd56a6f62b29ed3f02eecb7bf103e4564a442c
diff -r 0cd123644d1c -r f4c090a024aa cross/mipsel-none-elf-gcc/patches/patch-gcc_config_host-darwin.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cross/mipsel-none-elf-gcc/patches/patch-gcc_config_host-darwin.c Fri Apr 15 16:56:06 2022 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-gcc_config_host-darwin.c,v 1.1 2022/04/15 16:56:07 tnn Exp $
+
+Add host hooks to allow hosting on Darwin/aarch64.
+The patch is done differently from the upstream fix in order to be small.
+Delete this patch when updating to GCC 12 or later.
+
+--- gcc/config/host-darwin.c.orig 2018-01-03 10:03:58.000000000 +0000
++++ gcc/config/host-darwin.c
+@@ -75,3 +75,9 @@ darwin_gt_pch_use_address (void *addr, s
+
+ return ret;
+ }
++
++#if defined(__aarch64__)
++#include "hosthooks.h"
++#include "hosthooks-def.h"
++const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER;
++#endif
diff -r 0cd123644d1c -r f4c090a024aa cross/or1k-none-elf-gcc/distinfo
--- a/cross/or1k-none-elf-gcc/distinfo Fri Apr 15 16:36:15 2022 +0000
+++ b/cross/or1k-none-elf-gcc/distinfo Fri Apr 15 16:56:06 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 10:07:55 nia Exp $
+$NetBSD: distinfo,v 1.4 2022/04/15 16:56:08 tnn Exp $
BLAKE2s (gcc-9.1.0.tar.xz) = 6a9cace7fb6446d96c7ec983ddf178493425f71c37db2a98f3f55bbccf726569
SHA512 (gcc-9.1.0.tar.xz) = b6134df027e734cee5395afd739fcfa4ea319a6017d662e54e89df927dea19d3fff7a6e35d676685383034e3db01c9d0b653f63574c274eeb15a2cb0bc7a1f28
@@ -7,6 +7,7 @@
SHA512 (newlib-3.1.0.tar.gz) = efc4c3ab7153387780d141386bca5d3e20c9d25ae3e6b87cf94c8df9d301ce5926dacdff9bd33aeb9781559d933c3d0ae77f4e5b46120d90792f75dbfde702c7
Size (newlib-3.1.0.tar.gz) = 17958952 bytes
SHA1 (patch-contrib_download__prerequisites) = 98427276ac8e6ca20f902dc616a70db45a40ad49
+SHA1 (patch-gcc_config_host-darwin.c) = 92dc785153a4ad0caeb00333a3c1a287dc4ef96b
SHA1 (patch-gcc_system.h) = d8686e881cd30a385840295761d222f752a37bf3
SHA1 (patch-libcc1_configure) = 8329d9b52badb38ffac3c25d07ed34f71c707cf2
SHA1 (patch-libcc1_connection.cc) = 6f90edc27d813738e5455bb6e9c7b3d6eeda9a15
diff -r 0cd123644d1c -r f4c090a024aa cross/or1k-none-elf-gcc/patches/patch-gcc_config_host-darwin.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cross/or1k-none-elf-gcc/patches/patch-gcc_config_host-darwin.c Fri Apr 15 16:56:06 2022 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-gcc_config_host-darwin.c,v 1.1 2022/04/15 16:56:08 tnn Exp $
+
+Add host hooks to allow hosting on Darwin/aarch64.
+The patch is done differently from the upstream fix in order to be small.
+Delete this patch when updating to GCC 12 or later.
+
+--- gcc/config/host-darwin.c.orig 2019-01-01 12:31:55.000000000 +0000
++++ gcc/config/host-darwin.c
+@@ -75,3 +75,9 @@ darwin_gt_pch_use_address (void *addr, s
+
+ return ret;
+ }
++
++#if defined(__aarch64__)
++#include "hosthooks.h"
++#include "hosthooks-def.h"
++const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER;
++#endif
diff -r 0cd123644d1c -r f4c090a024aa cross/pdp11-aout-gcc/distinfo
--- a/cross/pdp11-aout-gcc/distinfo Fri Apr 15 16:36:15 2022 +0000
+++ b/cross/pdp11-aout-gcc/distinfo Fri Apr 15 16:56:06 2022 +0000
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 10:07:55 nia Exp $
+$NetBSD: distinfo,v 1.6 2022/04/15 16:56:08 tnn Exp $
BLAKE2s (gcc-8.2.0.tar.xz) = da01bca052fefd4f0677ab396afc72f2bbf85786ec86ba38c95cbb7e8daf28aa
SHA512 (gcc-8.2.0.tar.xz) = 64898a165f67e136d802a92e7633bf1b06c85266027e52127ea025bf5fc2291b5e858288aac0bdba246e6cdf7c6ec88bc8e0e7f3f6f1985f4297710cafde56ed
Size (gcc-8.2.0.tar.xz) = 63460876 bytes
SHA1 (patch-contrib_download__prerequisites) = be9b02068b3d4d783e92bee66d480bb2bfe35a84
+SHA1 (patch-gcc_config_host-darwin.c) = bb6513d096bed62a3c40a6543c6c854e5c20ef9d
SHA1 (patch-gcc_system.h) = 72a75ff773b9b5f3d2f16f4ec7d29e032aba5f53
SHA1 (patch-libcc1_configure) = 0368733ddf79b109fcc7146b0baeb37ab31e634a
SHA1 (patch-libcc1_connection.cc) = 2acd56a6f62b29ed3f02eecb7bf103e4564a442c
diff -r 0cd123644d1c -r f4c090a024aa cross/pdp11-aout-gcc/patches/patch-gcc_config_host-darwin.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cross/pdp11-aout-gcc/patches/patch-gcc_config_host-darwin.c Fri Apr 15 16:56:06 2022 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-gcc_config_host-darwin.c,v 1.1 2022/04/15 16:56:08 tnn Exp $
+
+Add host hooks to allow hosting on Darwin/aarch64.
+The patch is done differently from the upstream fix in order to be small.
+Delete this patch when updating to GCC 12 or later.
+
+--- gcc/config/host-darwin.c.orig 2018-01-03 10:03:58.000000000 +0000
++++ gcc/config/host-darwin.c
+@@ -75,3 +75,9 @@ darwin_gt_pch_use_address (void *addr, s
+
+ return ret;
+ }
++
++#if defined(__aarch64__)
++#include "hosthooks.h"
++#include "hosthooks-def.h"
++const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER;
++#endif
diff -r 0cd123644d1c -r f4c090a024aa cross/powerpc-none-elf-gcc/distinfo
--- a/cross/powerpc-none-elf-gcc/distinfo Fri Apr 15 16:36:15 2022 +0000
+++ b/cross/powerpc-none-elf-gcc/distinfo Fri Apr 15 16:56:06 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 10:07:56 nia Exp $
+$NetBSD: distinfo,v 1.4 2022/04/15 16:56:08 tnn Exp $
Home |
Main Index |
Thread Index |
Old Index