Merge "Fix opcode to compile with both gcc and llvm."
This commit is contained in:
commit
59bce688c7
@ -941,9 +941,6 @@ LOCAL_SRC_FILES := $(libc_bionic_src_files)
|
|||||||
LOCAL_CFLAGS := $(libc_common_cflags) \
|
LOCAL_CFLAGS := $(libc_common_cflags) \
|
||||||
-Wframe-larger-than=2048 \
|
-Wframe-larger-than=2048 \
|
||||||
|
|
||||||
# ssse3-strcmp-slm.S does not compile with Clang.
|
|
||||||
LOCAL_CLANG_ASFLAGS_x86_64 += -no-integrated-as
|
|
||||||
|
|
||||||
# memcpy.S, memchr.S, etc. do not compile with Clang.
|
# memcpy.S, memchr.S, etc. do not compile with Clang.
|
||||||
LOCAL_CLANG_ASFLAGS_arm += -no-integrated-as
|
LOCAL_CLANG_ASFLAGS_arm += -no-integrated-as
|
||||||
LOCAL_CLANG_ASFLAGS_arm64 += -no-integrated-as
|
LOCAL_CLANG_ASFLAGS_arm64 += -no-integrated-as
|
||||||
@ -975,9 +972,6 @@ LOCAL_SRC_FILES := $(libc_bionic_ndk_src_files)
|
|||||||
LOCAL_CFLAGS := $(libc_common_cflags) \
|
LOCAL_CFLAGS := $(libc_common_cflags) \
|
||||||
-Wframe-larger-than=2048 \
|
-Wframe-larger-than=2048 \
|
||||||
|
|
||||||
# ssse3-strcmp-slm.S does not compile with Clang.
|
|
||||||
LOCAL_CLANG_ASFLAGS_x86_64 += -no-integrated-as
|
|
||||||
|
|
||||||
# memcpy.S, memchr.S, etc. do not compile with Clang.
|
# memcpy.S, memchr.S, etc. do not compile with Clang.
|
||||||
LOCAL_CLANG_ASFLAGS_arm += -no-integrated-as
|
LOCAL_CLANG_ASFLAGS_arm += -no-integrated-as
|
||||||
LOCAL_CLANG_ASFLAGS_arm64 += -no-integrated-as
|
LOCAL_CLANG_ASFLAGS_arm64 += -no-integrated-as
|
||||||
@ -1030,9 +1024,6 @@ LOCAL_SRC_FILES := $(libc_pthread_src_files)
|
|||||||
LOCAL_CFLAGS := $(libc_common_cflags) \
|
LOCAL_CFLAGS := $(libc_common_cflags) \
|
||||||
-Wframe-larger-than=2048 \
|
-Wframe-larger-than=2048 \
|
||||||
|
|
||||||
# ssse3-strcmp-slm.S does not compile with Clang.
|
|
||||||
LOCAL_CLANG_ASFLAGS_x86_64 += -no-integrated-as
|
|
||||||
|
|
||||||
# memcpy.S, memchr.S, etc. do not compile with Clang.
|
# memcpy.S, memchr.S, etc. do not compile with Clang.
|
||||||
LOCAL_CLANG_ASFLAGS_arm += -no-integrated-as
|
LOCAL_CLANG_ASFLAGS_arm += -no-integrated-as
|
||||||
LOCAL_CLANG_ASFLAGS_arm64 += -no-integrated-as
|
LOCAL_CLANG_ASFLAGS_arm64 += -no-integrated-as
|
||||||
|
@ -1897,8 +1897,8 @@ L(strcmp_exitz):
|
|||||||
|
|
||||||
.p2align 4
|
.p2align 4
|
||||||
L(Byte0):
|
L(Byte0):
|
||||||
movzx (%rsi), %ecx
|
movzbl (%rsi), %ecx
|
||||||
movzx (%rdi), %eax
|
movzbl (%rdi), %eax
|
||||||
|
|
||||||
sub %ecx, %eax
|
sub %ecx, %eax
|
||||||
ret
|
ret
|
||||||
|
Loading…
x
Reference in New Issue
Block a user