[php-src] master: JIT: Fix Windows build of zend_jit_ir.c

From: Date: Thu, 22 Oct 2026 23:59:54 +0000
Subject: [php-src] master: JIT: Fix Windows build of zend_jit_ir.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-142613@lists.php.net to get a copy of this message
Author: Weilin Du (LamentXU123) Date: 2026-10-23T07:56:29+08:00 Commit: https://github.com/php/php-src/commit/547a26bd170d9a4994e73139df64a4369a91fb8c Raw diff: https://github.com/php/php-src/commit/547a26bd170d9a4994e73139df64a4369a91fb8c.diff JIT: Fix Windows build of zend_jit_ir.c Forward-declare jit_CONST_ADDR() before its use through ir_CONST_ADDR() in jit_TLS(). This avoids MSVC warning C4013, which fails Windows ZTS builds with /WX. Changed paths: M ext/opcache/jit/zend_jit_ir.c Diff: diff --git a/ext/opcache/jit/zend_jit_ir.c b/ext/opcache/jit/zend_jit_ir.c index 7e2b9f8e14cf..770eff650290 100644 --- a/ext/opcache/jit/zend_jit_ir.c +++ b/ext/opcache/jit/zend_jit_ir.c @@ -358,6 +358,8 @@ static int zend_jit_assign_to_variable(zend_jit_ctx *jit, zend_jit_addr ref_addr, bool check_exception); +static ir_ref jit_CONST_ADDR(zend_jit_ctx *jit, uintptr_t addr); + static ir_ref jit_CONST_FUNC(zend_jit_ctx *jit, uintptr_t addr, uint16_t flags); static ir_ref jit_ADD_OFFSET(zend_jit_ctx *jit, ir_ref addr, uintptr_t offset);

« previous php.cvs (#142613) next »