[php-src] PR #19630: Fix JIT stack setup on aarch64/clang
| From: | arnaud-lb | Date: | Fri, 29 Aug 2025 11:26:54 +0000 |
| Subject: | [php-src] PR #19630: Fix JIT stack setup on aarch64/clang | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32963@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/19630
Author: arnaud-lb
Fixes GH-19601.
On aarch64 we must set
IR_USE_FRAME_POINTER to ensure that LR/x30 is saved. Also,
fixed_stack_frame_size must be n*16, not n*16+8 like on x86.
This was properly handled before, but this broke due to this change, which I failed to test on
aarch64: https://github.com/php/php-src/blob/fc467dcb6474cafdbb2fa32c8e876f78dca00bd1/ext/opcache/jit/zend_jit_ir.c#L2735-L2736