]> granicus.if.org Git - php/commitdiff
Fixed possible local assembler labels conflicts.
authorDmitry Stogov <dmitry@zend.com>
Wed, 20 Dec 2017 18:44:24 +0000 (21:44 +0300)
committerDmitry Stogov <dmitry@zend.com>
Wed, 20 Dec 2017 18:44:24 +0000 (21:44 +0300)
Zend/zend_string.c
ext/opcache/zend_accelerator_util_funcs.c

index f5573dfd25347af053a641b9135ec42bb11c72a6..5d82cab3b2ef7da07ba9900887f92d8a3363c357 100644 (file)
@@ -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),
index a83b3f8b55e3c78ce0c1d02de9737304c9a8b30f..a113556c7ffebaa8cd1ebb9af293b685228ccb0b 100644 (file)
@@ -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)