Skip to content

zend introduce const GNUC attribute. #9326

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

Closed
wants to merge 2 commits into from

Conversation

devnexen
Copy link
Member

sub optimisation where there is no pointers, nor particular memory
layout, thread local/volatile ... involved.
usage concealed for now into little pack helpers.

sub optimisation where there is no pointers, nor particular memory
 layout, thread local/volatile ... involved.
usage concealed for now into little pack helpers.
@Girgias
Copy link
Member

Girgias commented Aug 13, 2022

@devnexen
Copy link
Member Author

is it clang or does it need particular preprocessor constants ? I tested both compilers locally.

@Girgias
Copy link
Member

Girgias commented Aug 13, 2022

is it clang or does it need particular preprocessor constants ? I tested both compilers locally.

Seems like Clang supports according to: https://stackoverflow.com/a/49468797 asa I find the official docs of Clang a bit confusing: https://clang.llvm.org/docs/AttributeReference.html#const

@devnexen
Copy link
Member Author

devnexen commented Aug 13, 2022

ah ok I see in the case of clang ZEND_GCC_VERSION (ie none 0) is also defined :) (I have tested locally clang too)

@devnexen devnexen requested a review from iluuu1994 August 15, 2022 17:34
Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

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

Looks good otherwise.

@devnexen devnexen closed this in db64c1c Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants