Skip to content

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented May 13, 2021

The compiler should be smart enough to optimize this on its own.

The compiler should be smart enough to optimize this on its own.
# pragma GCC diagnostic ignored "-Wvolatile-register-var"
register zend_execute_data* volatile execute_data __asm__(ZEND_VM_FP_GLOBAL_REG);
# pragma GCC diagnostic warning "-Wvolatile-register-var"
zend_execute_data* volatile execute_data __asm__(ZEND_VM_FP_GLOBAL_REG);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are global registers and should stay.

@Girgias Girgias merged commit aca6aef into php:master May 14, 2021
@Girgias Girgias deleted the remove-register-qualifier branch May 14, 2021 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants