diff options
author | Chih-Hung Hsieh <chh@google.com> | 2014-12-17 14:59:53 -0800 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2014-12-17 14:59:53 -0800 |
commit | f507f333419d47b36edc203d04da90dc5fdf4010 (patch) | |
tree | b5d54e5bd1609f5b3f3e976811ee0ba22ee38b82 | |
parent | 39095f0daa4731546d3b8b1e0cfac248ad1f1f4b (diff) | |
download | libmincrypt-f507f333419d47b36edc203d04da90dc5fdf4010.tar.gz |
Disable clang optimization that has segmentation fault.
When compiling for aosp_fugu-userdebug, clang aborted in pass:
Running pass 'Function Pass Manager' on module 'system/core/libmincrypt/p256_ec.c'.
Running pass 'X86 DAG->DAG Instruction Selection' on function '@felem_square'
BUG: 18790528
Change-Id: I416c07cae4c1a9743655bc45bd33c10a5cc9b41f
-rw-r--r-- | Android.mk | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -6,6 +6,8 @@ include $(CLEAR_VARS) LOCAL_MODULE := libmincrypt LOCAL_SRC_FILES := dsa_sig.c p256.c p256_ec.c p256_ecdsa.c rsa.c sha.c sha256.c LOCAL_CFLAGS := -Wall -Werror +# Clang's slp-vectorize phase has segmentation fault when compiling p256_ec.c. +LOCAL_CLANG_CFLAGS += -fno-slp-vectorize include $(BUILD_STATIC_LIBRARY) include $(CLEAR_VARS) |