Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: third_party/sqlite/patches/0010-build-Undefined-symbol-in-intrinsic-on-Android-clang.patch

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698