summaryrefslogtreecommitdiffstats
path: root/libmincrypt
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2014-12-17 14:59:53 -0800
committerChih-Hung Hsieh <chh@google.com>2014-12-17 14:59:53 -0800
commitc83d3a3b6557730e6a9b72677f46db749cb312a8 (patch)
tree1db077132f2122c13549835cf89c1e74521390f5 /libmincrypt
parent8641daeea1c9990934562593828b85d8dceb5a04 (diff)
downloadsystem_core-c83d3a3b6557730e6a9b72677f46db749cb312a8.zip
system_core-c83d3a3b6557730e6a9b72677f46db749cb312a8.tar.gz
system_core-c83d3a3b6557730e6a9b72677f46db749cb312a8.tar.bz2
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
Diffstat (limited to 'libmincrypt')
-rw-r--r--libmincrypt/Android.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmincrypt/Android.mk b/libmincrypt/Android.mk
index 7906986..503bcb4 100644
--- a/libmincrypt/Android.mk
+++ b/libmincrypt/Android.mk
@@ -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)