aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2020-08-08 12:15:09 +0100
committerIain Sandoe <iain@sandoe.co.uk>2020-11-01 20:33:47 +0000
commit590febb5f6624f78b36402a7c9a9c318978f1efa (patch)
tree62ec573562739dd9034ecd67ec0b71f6bae0f73f
parentbb93020ff852fb159bc329bbaea12a33a4ef6761 (diff)
downloadgcc-590febb5f6624f78b36402a7c9a9c318978f1efa.zip
gcc-590febb5f6624f78b36402a7c9a9c318978f1efa.tar.gz
gcc-590febb5f6624f78b36402a7c9a9c318978f1efa.tar.bz2
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.
-rw-r--r--gcc/config/host-darwin.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/host-darwin.c b/gcc/config/host-darwin.c
index 0face6c..c862935 100644
--- a/gcc/config/host-darwin.c
+++ b/gcc/config/host-darwin.c
@@ -24,7 +24,10 @@
#include "config/host-darwin.h"
/* 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)));
/* Return the address of the PCH address space, if the PCH will fit in it. */