File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1444,12 +1444,17 @@ exec "$@"
1444
1444
buildEnv . PATH = `${ phpSourceDir } :${ buildEnv . PATH } `
1445
1445
1446
1446
// Fix "fixup not sufficiently aligned" errors in OPcache JIT on macOS
1447
- // Add compiler flags to ensure proper alignment for inline assembly
1447
+ // Add aggressive compiler flags to ensure proper alignment for inline assembly
1448
1448
const additionalCFlags = [
1449
- '-falign-functions=16' , // Align functions to 16-byte boundaries
1450
- '-falign-loops=16' , // Align loops to 16-byte boundaries
1449
+ '-falign-functions=32' , // Align functions to 32-byte boundaries (more aggressive)
1450
+ '-falign-loops=32' , // Align loops to 32-byte boundaries (more aggressive)
1451
+ '-falign-jumps=32' , // Align jump targets to 32-byte boundaries
1452
+ '-falign-labels=32' , // Align labels to 32-byte boundaries
1451
1453
'-fno-strict-aliasing' , // Prevent strict aliasing optimizations
1452
1454
'-fno-delete-null-pointer-checks' , // Prevent null pointer optimizations
1455
+ '-fno-optimize-sibling-calls' , // Prevent tail call optimization that can affect alignment
1456
+ '-fno-reorder-blocks' , // Prevent block reordering that can affect alignment
1457
+ '-mstackrealign' , // Force stack realignment for better alignment guarantees
1453
1458
]
1454
1459
1455
1460
// ARM64-specific flags that are not compatible with x86_64
You can’t perform that action at this time.
0 commit comments