com php-src: Fixed possible local assembler labels conflicts.: Zend/zend_string.c ext/opcache/zend_accelerator_util _funcs.c

From: Date: Wed, 20 Dec 2017 18:44:24 +0000
Subject: com php-src: Fixed possible local assembler labels conflicts.: Zend/zend_string.c ext/opcache/zend_accelerator_util _funcs.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-100645@lists.php.net to get a copy of this message
Commit: 4691cbe5d19055593b5e0d3d3842131bbd251c88 Author: Dmitry Stogov <dmitry@zend.com> Wed, 20 Dec 2017 21:44:24 +0300 Parents: 0994e373f21c1b4c63d38975f0c62866f0378113 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4691cbe5d19055593b5e0d3d3842131bbd251c88 Log: Fixed possible local assembler labels conflicts. Changed paths: M Zend/zend_string.c M ext/opcache/zend_accelerator_util_funcs.c Diff: diff --git a/Zend/zend_string..c b/Zend/zend_string.c index f5573df..5d82cab 100644 --- a/Zend/zend_string.c +++ b/Zend/zend_string.c @@ -322,27 +322,27 @@ ZEND_API zend_bool ZEND_FASTCALL zend_string_equal_val(zend_string *s1, zend_str zend_ulong ret; __asm__ ( - ".L0%=:\n\t" + ".LL0%=:\n\t" "movl (%2,%3), %0\n\t" "xorl (%2), %0\n\t" - "jne .L1%=\n\t" + "jne .LL1%=\n\t" "addl $0x4, %2\n\t" "subl $0x4, %1\n\t" - "ja .L0%=\n\t" + "ja .LL0%=\n\t" "movl $0x1, %0\n\t" - "jmp .L3%=\n\t" - ".L1%=:\n\t" + "jmp .LL3%=\n\t" + ".LL1%=:\n\t" "cmpl $0x4,%1\n\t" - "jb .L2%=\n\t" + "jb .LL2%=\n\t" "xorl %0, %0\n\t" - "jmp .L3%=\n\t" - ".L2%=:\n\t" + "jmp .LL3%=\n\t" + ".LL2%=:\n\t" "negl %1\n\t" "lea 0x1c(,%1,8), %1\n\t" "shll %b1, %0\n\t" "sete %b0\n\t" "movzbl %b0, %0\n\t" - ".L3%=:\n" + ".LL3%=:\n" : "=&a"(ret), "+c"(len), "+r"(ptr) @@ -361,16 +361,16 @@ ZEND_API zend_bool ZEND_FASTCALL I_WRAP_SONAME_FNNAME_ZU(NONE,zend_string_equal_ __asm__ ( "test %1, %1\n\t" - "jnz .L1%=\n\t" + "jnz .LL1%=\n\t" "movl $0x1, %0\n\t" - "jmp .L2%=\n\t" - ".L1%=:\n\t" + "jmp .LL2%=\n\t" + ".LL1%=:\n\t" "cld\n\t" "rep\n\t" "cmpsb\n\t" "sete %b0\n\t" "movzbl %b0, %0\n\t" - ".L2%=:\n" + ".LL2%=:\n" : "=a"(ret), "+c"(len), "+D"(ptr1), @@ -390,27 +390,27 @@ ZEND_API zend_bool ZEND_FASTCALL zend_string_equal_val(zend_string *s1, zend_str zend_ulong ret; __asm__ ( - ".L0%=:\n\t" + ".LL0%=:\n\t" "movq (%2,%3), %0\n\t" "xorq (%2), %0\n\t" - "jne .L1%=\n\t" + "jne .LL1%=\n\t" "addq $0x8, %2\n\t" "subq $0x8, %1\n\t" - "ja .L0%=\n\t" + "ja .LL0%=\n\t" "movq $0x1, %0\n\t" - "jmp .L3%=\n\t" - ".L1%=:\n\t" + "jmp .LL3%=\n\t" + ".LL1%=:\n\t" "cmpq $0x8,%1\n\t" - "jb .L2%=\n\t" + "jb .LL2%=\n\t" "xorq %0, %0\n\t" - "jmp .L3%=\n\t" - ".L2%=:\n\t" + "jmp .LL3%=\n\t" + ".LL2%=:\n\t" "negq %1\n\t" "lea 0x3c(,%1,8), %1\n\t" "shlq %b1, %0\n\t" "sete %b0\n\t" "movzbq %b0, %0\n\t" - ".L3%=:\n" + ".LL3%=:\n" : "=&a"(ret), "+c"(len), "+r"(ptr) @@ -429,16 +429,16 @@ ZEND_API zend_bool ZEND_FASTCALL I_WRAP_SONAME_FNNAME_ZU(NONE,zend_string_equal_ __asm__ ( "test %1, %1\n\t" - "jnz .L1%=\n\t" + "jnz .LL1%=\n\t" "movq $0x1, %0\n\t" - "jmp .L2%=\n\t" - ".L1%=:\n\t" + "jmp .LL2%=\n\t" + ".LL1%=:\n\t" "cld\n\t" "rep\n\t" "cmpsb\n\t" "sete %b0\n\t" "movzbq %b0, %0\n\t" - ".L2%=:\n" + "..LL2%=:\n" : "=a"(ret), "+c"(len), "+D"(ptr1), diff --git a/ext/opcache/zend_accelerator_util_funcs.c b/ext/opcache/zend_accelerator_util_funcs.c index a83b3f8..a113556 100644 --- a/ext/opcache/zend_accelerator_util_funcs.c +++ b/ext/opcache/zend_accelerator_util_funcs.c @@ -606,7 +606,7 @@ static zend_always_inline void fast_memcpy(void *dest, const void *src, size_t s __asm__ volatile ( ".align 16\n\t" - ".L0%=:\n\t" + ".LL0%=:\n\t" "prefetchnta 0x40(%1)\n\t" "movdqa (%1), %%xmm0\n\t" "movdqa 0x10(%1), %%xmm1\n\t" @@ -618,7 +618,7 @@ static zend_always_inline void fast_memcpy(void *dest, const void *src, size_t s "movdqa %%xmm3, 0x30(%1,%2)\n\t" "addl $0x40, %1\n\t" "subl $0x40, %0\n\t" - "ja .L0%=" + "ja .LL0%=" : "+r"(size), "+r"(src) : "r"(delta) @@ -631,7 +631,7 @@ static zend_always_inline void fast_memcpy(void *dest, const void *src, size_t s __asm__ volatile ( ".align 16\n\t" - ".L0%=:\n\t" + ".LL0%=:\n\t" "prefetchnta 0x40(%1)\n\t" "movdqa (%1), %%xmm0\n\t" "movdqa 0x10(%1), %%xmm1\n\t" @@ -643,7 +643,7 @@ static zend_always_inline void fast_memcpy(void *dest, const void *src, size_t s "movdqa %%xmm3, 0x30(%1,%2)\n\t" "addq $0x40, %1\n\t" "subq $0x40, %0\n\t" - "ja .L0%=" + "ja .LL0%=" : "+r"(size), "+r"(src) : "r"(delta)

« previous php.cvs (#100645) next »