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

Unified Diff: third_party/sqlite/amalgamation/sqlite3.c

Side-by-side diff isn't available for this file because of its large size.
Issue 2762233003: [sql] Disable a clang intrinsic in 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:
Download patch
« no previous file with comments | « no previous file | third_party/sqlite/patches/0010-build-Undefined-symbol-in-intrinsic-on-clang.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/amalgamation/sqlite3.c
diff --git a/third_party/sqlite/amalgamation/sqlite3.c b/third_party/sqlite/amalgamation/sqlite3.c
index e5fc3c64694db0f74f5070d9accf0c2aea152d5c..b849c15d32fe634b15faae851d4d518cdc395166 100644
--- a/third_party/sqlite/amalgamation/sqlite3.c
+++ b/third_party/sqlite/amalgamation/sqlite3.c
@@ -28893,13 +28893,12 @@ SQLITE_PRIVATE int sqlite3SubInt64(i64 *pA, i64 iB){
#endif
}
SQLITE_PRIVATE int sqlite3MulInt64(i64 *pA, i64 iB){
-/* TODO(shess): Chromium Android clang generates a link error:
+/* TODO(shess): Removing clang support because on many platforms it generates a
+** link error for this intrinsic:
** undefined reference to '__mulodi4'
-** UPDATE(shess): Also, apparently, 32-bit Linux clang.
+** http://crbug.com/701524
*/
-#if GCC_VERSION>=5004000 || \
- (CLANG_VERSION>=4000000 && !defined(__ANDROID__) && \
- (!defined(__linux__) || !defined(__i386__)))
+#if GCC_VERSION>=5004000
return __builtin_mul_overflow(*pA, iB, pA);
#else
i64 iA = *pA;
« no previous file with comments | « no previous file | third_party/sqlite/patches/0010-build-Undefined-symbol-in-intrinsic-on-clang.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698