OLD | NEW |
(Empty) | |
| 1 From fdd45cb19f2120330bb181cf69b55634588086f5 Mon Sep 17 00:00:00 2001 |
| 2 From: Scott Hess <shess@chromium.org> |
| 3 Date: Tue, 14 Mar 2017 13:51:07 -0700 |
| 4 Subject: [PATCH 10/10] [build] Undefined symbol in intrinsic on Android clang. |
| 5 |
| 6 SQLite implements sqlite3MulInt64() using __builtin_mul_overflow() for |
| 7 appropriate versions of GCC or clang. But the Chromium clang package |
| 8 doesn't seem to provide the necessary library for Android. |
| 9 |
| 10 BUG=701524 |
| 11 --- |
| 12 third_party/sqlite/src/src/util.c | 5 ++++- |
| 13 1 file changed, 4 insertions(+), 1 deletion(-) |
| 14 |
| 15 diff --git a/third_party/sqlite/src/src/util.c b/third_party/sqlite/src/src/util
.c |
| 16 index c6d2bae3a7b4..fee852d3309f 100644 |
| 17 --- a/third_party/sqlite/src/src/util.c |
| 18 +++ b/third_party/sqlite/src/src/util.c |
| 19 @@ -1310,7 +1310,10 @@ int sqlite3SubInt64(i64 *pA, i64 iB){ |
| 20 #endif |
| 21 } |
| 22 int sqlite3MulInt64(i64 *pA, i64 iB){ |
| 23 -#if GCC_VERSION>=5004000 || CLANG_VERSION>=4000000 |
| 24 +/* TODO(shess): Chromium Android clang generates a link error: |
| 25 +** undefined reference to '__mulodi4' |
| 26 +*/ |
| 27 +#if GCC_VERSION>=5004000 || (CLANG_VERSION>=4000000 && !defined(__ANDROID__)) |
| 28 return __builtin_mul_overflow(*pA, iB, pA); |
| 29 #else |
| 30 i64 iA = *pA; |
| 31 -- |
| 32 2.11.0 |
| 33 |
OLD | NEW |