com php-src: Mark some operand fetching funs as ATTRIBUTE_UNU SED: Zend/zend_execute.c

From: Date: Wed, 12 Jun 2019 11:17:25 +0000
Subject: com php-src: Mark some operand fetching funs as ATTRIBUTE_UNU SED: Zend/zend_execute.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106713@lists.php.net to get a copy of this message
Commit: 080e2316cf86a5fcf030b57569eaa07d6d9d22ef Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 12 Jun 2019 13:14:08 +0200 Parents: 16f79129c788578711ab63f088dc4f8f43f0a952 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=080e2316cf86a5fcf030b57569eaa07d6d9d22ef Log: Mark some operand fetching funs as ATTRIBUTE_UNUSED Whether these are used depends on VM specialization. Changed paths: M Zend/zend_execute.c Diff: diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 3054082..6771908 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -466,7 +466,7 @@ static zend_always_inline zval *_get_zval_ptr_deref(int op_type, znode_op node, } } -static zend_always_inline zval *_get_op_data_zval_ptr_deref_r(int op_type, znode_op node, zend_free_op *should_free EXECUTE_DATA_DC OPLINE_DC) +static zend_always_inline ZEND_ATTRIBUTE_UNUSED zval *_get_op_data_zval_ptr_deref_r(int op_type, znode_op node, zend_free_op *should_free EXECUTE_DATA_DC OPLINE_DC) { if (op_type & (IS_TMP_VAR|IS_VAR)) { if (op_type == IS_TMP_VAR) { @@ -532,7 +532,7 @@ static inline zval *_get_zval_ptr_ptr(int op_type, znode_op node, zend_free_op * } } -static inline zval *_get_obj_zval_ptr(int op_type, znode_op op, zend_free_op *should_free, int type EXECUTE_DATA_DC OPLINE_DC) +static inline ZEND_ATTRIBUTE_UNUSED zval *_get_obj_zval_ptr(int op_type, znode_op op, zend_free_op *should_free, int type EXECUTE_DATA_DC OPLINE_DC) { if (op_type == IS_UNUSED) { *should_free = NULL; @@ -541,7 +541,7 @@ static inline zval *_get_obj_zval_ptr(int op_type, znode_op op, zend_free_op *sh return get_zval_ptr(op_type, op, should_free, type); } -static inline zval *_get_obj_zval_ptr_undef(int op_type, znode_op op, zend_free_op *should_free, int type EXECUTE_DATA_DC OPLINE_DC) +static inline ZEND_ATTRIBUTE_UNUSED zval *_get_obj_zval_ptr_undef(int op_type, znode_op op, zend_free_op *should_free, int type EXECUTE_DATA_DC OPLINE_DC) { if (op_type == IS_UNUSED) { *should_free = NULL; @@ -550,7 +550,7 @@ static inline zval *_get_obj_zval_ptr_undef(int op_type, znode_op op, zend_free_ return get_zval_ptr_undef(op_type, op, should_free, type); } -static inline zval *_get_obj_zval_ptr_ptr(int op_type, znode_op node, zend_free_op *should_free, int type EXECUTE_DATA_DC) +static inline ZEND_ATTRIBUTE_UNUSED zval *_get_obj_zval_ptr_ptr(int op_type, znode_op node, zend_free_op *should_free, int type EXECUTE_DATA_DC) { if (op_type == IS_UNUSED) { *should_free = NULL;

« previous php.cvs (#106713) next »