aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrh <>2023-07-05 18:59:52 +0000
committerdrh <>2023-07-05 18:59:52 +0000
commite68899f1e4a4feac59b3ec61c6bfa1b78f221a6c (patch)
treedd0c3c56d13ccc9c3bf2bc9da4a6ae7182502cda
parent85ca6d7ace79dace5d9dd347663272332caf0129 (diff)
downloadsqlite-e68899f1e4a4feac59b3ec61c6bfa1b78f221a6c.tar.gz
sqlite-e68899f1e4a4feac59b3ec61c6bfa1b78f221a6c.zip
Work around for an apparent GCC bug. See
[forum:/info/ee7278611394034c|forum post ee7278611394034c] for details. FossilOrigin-Name: 5d9e9364808793d65925d4efbfde0f4246df258758f15e8ce1105070d1018fe6
-rw-r--r--manifest12
-rw-r--r--manifest.uuid2
-rw-r--r--src/util.c15
3 files changed, 22 insertions, 7 deletions
diff --git a/manifest b/manifest
index 5a1b0a1e4..f132d2faf 100644
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Make\sthe\sorder\sof\soperations\sexplicit\sfor\sthe\serror\sterm\sof\sDekker\ndouble-precision\smultiply.
-D 2023-07-05T15:34:30.576
+C Work\saround\sfor\san\sapparent\sGCC\sbug.\s\sSee\n[forum:/info/ee7278611394034c|forum\spost\see7278611394034c]\sfor\sdetails.
+D 2023-07-05T18:59:52.671
F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
@@ -705,7 +705,7 @@ F src/trigger.c ad6ab9452715fa9a8075442e15196022275b414b9141b566af8cdb7a1605f2b0
F src/update.c 0aa36561167a7c40d01163238c297297962f31a15a8d742216b3c37cdf25f731
F src/upsert.c 5303dc6c518fa7d4b280ec65170f465c7a70b7ac2b22491598f6d0b4875b3145
F src/utf.c ee39565f0843775cc2c81135751ddd93eceb91a673ea2c57f61c76f288b041a0
-F src/util.c 059f3d7f7f1b893717c2878dc874dc870d6bae8e2f279dbd48770e08fbd4df00
+F src/util.c c8a4c99081e378a4562e24f6c2e81319dc2d399c82c12f9b75ad3fd5ecde178d
F src/vacuum.c 604fcdaebe76f3497c855afcbf91b8fa5046b32de3045bab89cc008d68e40104
F src/vdbe.c 74282a947234513872a83b0bab1b8c644ece64b3e27b053ef17677c8ff9c81e0
F src/vdbe.h 41485521f68e9437fdb7ec4a90f9d86ab294e9bb8281e33b235915e29122cfc0
@@ -2043,8 +2043,8 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
-P bfe6432a46fd41bfadf4516a73b4e2523d9b453c3e4486fe6df7e1d25275dfb3
-R 8b204c49eabe422861e3cb4961a4552e
+P 28f57b34e6b11184a36e363a985e7531bddd7be48a5e039a670e5acf748eedda
+R c8ff71fb703fd93e733ec7777485c76e
U drh
-Z d0275ad4a7f94a6a298c9f4a0ef255ba
+Z ae8486dcf7227b47ea3089bba703cbf5
# Remove this line to create a well-formed Fossil manifest.
diff --git a/manifest.uuid b/manifest.uuid
index 9c9818172..35588ce08 100644
--- a/manifest.uuid
+++ b/manifest.uuid
@@ -1 +1 @@
-28f57b34e6b11184a36e363a985e7531bddd7be48a5e039a670e5acf748eedda \ No newline at end of file
+5d9e9364808793d65925d4efbfde0f4246df258758f15e8ce1105070d1018fe6 \ No newline at end of file
diff --git a/src/util.c b/src/util.c
index e15e037fb..52dc09a7d 100644
--- a/src/util.c
+++ b/src/util.c
@@ -386,6 +386,16 @@ u8 sqlite3StrIHash(const char *z){
return h;
}
+/*
+** Work around an apparent bug in GCC.
+** https://sqlite.org/forum/info/ee7278611394034c
+*/
+#ifdef i386
+#pragma GCC push_options
+#pragma GCC optimize("float-store")
+#endif
+
+
/* Double-Double multiplication. (x[0],x[1]) *= (y,yy)
**
** Reference:
@@ -413,6 +423,11 @@ static void dekkerMul2(double *x, double y, double yy){
x[1] += cc;
}
+/* End of the GCC bug work-around */
+#ifdef i386
+#pragma GCC pop_options
+#endif
+
/*
** The string z[] is an text representation of a real number.
** Convert this string to a double and write it into *pResult.