]> granicus.if.org Git - php/commitdiff
Fix bug #75677: Drop fastcall attribute on variadic function
authorLi-Wen Hsu <lwhsu@lwhsu.org>
Wed, 13 Dec 2017 19:19:43 +0000 (03:19 +0800)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 15 Dec 2017 20:56:08 +0000 (21:56 +0100)
Fastcall generally doesn't make sense on variadic functions. For
clang in particular this eliminates a "fastcall calling convention
ignored on variadic function" warning.

NEWS
Zend/zend_hash.c
Zend/zend_hash.h

diff --git a/NEWS b/NEWS
index 258446fcc53e759f65fae97e4dc6b636e6abe428..2441f288ae15d18548d0b9850d5e76cc3fda5743 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -23,6 +23,8 @@ PHP                                                                        NEWS
     properties). (pmmaga)
   . Fixed bug #63911 (identical trait methods raise errors during composition). 
     (pmmaga)
+  . Fixed bug #75677 (Clang ignores fastcall calling convention on variadic
+    function). (Li-Wen Hsu)
 
 - BCMath:
   . Fixed bug #66364 (BCMath bcmul ignores scale parameter). (cmb)
index ec2141eec4a5acd194f437ce1b163298d9691231..29be2ca1869e0743b48509cdc1ef258cd7a7ef0c 100644 (file)
@@ -1615,7 +1615,7 @@ ZEND_API void ZEND_FASTCALL zend_hash_apply_with_argument(HashTable *ht, apply_f
 }
 
 
-ZEND_API void ZEND_FASTCALL zend_hash_apply_with_arguments(HashTable *ht, apply_func_args_t apply_func, int num_args, ...)
+ZEND_API void zend_hash_apply_with_arguments(HashTable *ht, apply_func_args_t apply_func, int num_args, ...)
 {
        uint32_t idx;
        Bucket *p;
index 852ec1c56af214a2ac6fe3cf4748cd752030d29c..6a37e8a82b1b52c8167006450dfb881169299610 100644 (file)
@@ -154,7 +154,7 @@ ZEND_API void ZEND_FASTCALL zend_hash_graceful_destroy(HashTable *ht);
 ZEND_API void ZEND_FASTCALL zend_hash_graceful_reverse_destroy(HashTable *ht);
 ZEND_API void ZEND_FASTCALL zend_hash_apply(HashTable *ht, apply_func_t apply_func);
 ZEND_API void ZEND_FASTCALL zend_hash_apply_with_argument(HashTable *ht, apply_func_arg_t apply_func, void *);
-ZEND_API void ZEND_FASTCALL zend_hash_apply_with_arguments(HashTable *ht, apply_func_args_t apply_func, int, ...);
+ZEND_API void zend_hash_apply_with_arguments(HashTable *ht, apply_func_args_t apply_func, int, ...);
 
 /* This function should be used with special care (in other words,
  * it should usually not be used).  When used with the ZEND_HASH_APPLY_STOP