summaryrefslogtreecommitdiff
path: root/cross/ppc-morphos-gcc-10/patches/patch-gcc_config_host-darwin.c
blob: d78c3bcb87a473abe01892a4cfd75a4c0922f36a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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	2020-07-23 06:35:17.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