mirror of
https://github.com/php/php-src.git
synced 2024-11-26 19:33:55 +08:00
Drop FASTCALL on variadic functions (GH-15389)
This is unlikely to be properly supported by compilers anyway, see <https://github.com/php/php-src/pull/2975>.
This commit is contained in:
parent
6949b7bf42
commit
65c6d72319
@ -290,7 +290,7 @@ ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_va(
|
||||
return ast;
|
||||
}
|
||||
|
||||
ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_n(unsigned kind, ...) {
|
||||
ZEND_API zend_ast * zend_ast_create_n(unsigned kind, ...) {
|
||||
va_list va;
|
||||
va_start(va, kind);
|
||||
zend_ast *ast = zend_ast_create_va(kind, 0, &va);
|
||||
@ -298,7 +298,7 @@ ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_n(unsigned kind, ...) {
|
||||
return ast;
|
||||
}
|
||||
|
||||
ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_ex_n(
|
||||
ZEND_API zend_ast * zend_ast_create_ex_n(
|
||||
zend_ast_kind kind, unsigned attr, ...) {
|
||||
va_list va;
|
||||
va_start(va, attr);
|
||||
|
@ -249,8 +249,8 @@ ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_5(zend_ast_kind kind, zend_ast
|
||||
|
||||
ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_va(zend_ast_kind kind, zend_ast_attr attr, va_list *va);
|
||||
/* Need to use unsigned args to avoid va promotion UB. */
|
||||
ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_n(unsigned kind, ...);
|
||||
ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_ex_n(zend_ast_kind kind, unsigned attr, ...);
|
||||
ZEND_API zend_ast * zend_ast_create_n(unsigned kind, ...);
|
||||
ZEND_API zend_ast * zend_ast_create_ex_n(zend_ast_kind kind, unsigned attr, ...);
|
||||
|
||||
static zend_always_inline zend_ast * zend_ast_create_ex_0(zend_ast_kind kind, zend_ast_attr attr) {
|
||||
zend_ast *ast = zend_ast_create_0(kind);
|
||||
|
Loading…
Reference in New Issue
Block a user