Skip to content

Commit 590febb

Browse files
committed
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.
1 parent bb93020 commit 590febb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gcc/config/host-darwin.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
#include "config/host-darwin.h"
2525

2626
/* Yes, this is really supposed to work. */
27-
static char pch_address_space[1024*1024*1024] __attribute__((aligned (4096)));
27+
/* This allows for a pagesize of 16384, which we have on Darwin20, but should
28+
continue to work OK for pagesize 4096 which we have on earlier versions.
29+
The size is 1 (binary) Gb. */
30+
static char pch_address_space[65536*16384] __attribute__((aligned (16384)));
2831

2932
/* Return the address of the PCH address space, if the PCH will fit in it. */
3033

0 commit comments

Comments
 (0)