Skip to content

Add function exposing HAVE_GCC_GLOBAL_REGS #8359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 8, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Zend/zend_vm.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ ZEND_API const void* ZEND_FASTCALL zend_get_opcode_handler_func(const zend_op *o
ZEND_API const zend_op *zend_get_halt_op(void);
ZEND_API int ZEND_FASTCALL zend_vm_call_opcode_handler(zend_execute_data *ex);
ZEND_API int zend_vm_kind(void);
ZEND_API int zend_gcc_global_regs(void);

void zend_vm_init(void);
void zend_vm_dtor(void);
Expand Down
9 changes: 9 additions & 0 deletions Zend/zend_vm_execute.skl
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,12 @@ ZEND_API int zend_vm_kind(void)
{
return ZEND_VM_KIND;
}

ZEND_API int zend_gcc_global_regs(void)
{
#if defined(HAVE_GCC_GLOBAL_REGS)
return 1;
#else
return 0;
#endif
}