2023-03-05 18:33:17 +00:00
|
|
|
From ac2ca688140dbf103ad18efbc8fb98e62ec40e27 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Iain Sandoe <iain@sandoe.co.uk>
|
|
|
|
Date: Sat, 8 Aug 2020 12:15:09 +0100
|
|
|
|
Subject: [PATCH] Darwin: Adjust the PCH area to allow for 16384byte page size.
|
|
|
|
|
|
|
|
Newer versions of Darwin report pagesize 20 which means that we
|
|
|
|
need to adjust the aligment of the PCH area.
|
|
|
|
|
|
|
|
gcc/ChangeLog:
|
|
|
|
|
|
|
|
* config/host-darwin.c: Align pch_address_space to 16384.
|
|
|
|
|
|
|
|
(cherry picked from commit 590febb5f6624f78b36402a7c9a9c318978f1efa)
|
|
|
|
---
|
2023-05-20 23:05:13 +00:00
|
|
|
gcc/config/host-darwin.c | 5 ++++-
|
2023-03-05 18:33:17 +00:00
|
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
--- a/gcc/config/host-darwin.c
|
|
|
|
+++ b/gcc/config/host-darwin.c
|
|
|
|
@@ -24,7 +24,10 @@
|
|
|
|
#include "config/host-darwin.h"
|
2023-05-20 23:05:13 +00:00
|
|
|
|
2023-03-05 18:33:17 +00:00
|
|
|
/* Yes, this is really supposed to work. */
|
|
|
|
-static char pch_address_space[1024*1024*1024] __attribute__((aligned (4096)));
|
|
|
|
+/* This allows for a pagesize of 16384, which we have on Darwin20, but should
|
|
|
|
+ continue to work OK for pagesize 4096 which we have on earlier versions.
|
|
|
|
+ The size is 1 (binary) Gb. */
|
|
|
|
+static char pch_address_space[65536*16384] __attribute__((aligned (16384)));
|
2023-05-20 23:05:13 +00:00
|
|
|
|
2023-03-05 18:33:17 +00:00
|
|
|
/* Return the address of the PCH address space, if the PCH will fit in it. */
|
2023-05-20 23:05:13 +00:00
|
|
|
|