#At file:///home/hf/work/mysql_common/52208/ based on revid:bar@stripped
3171 Alexey Botchkov 2010-05-05
Bug#52208 gis fails on some platforms (Solaris, HP-UX, Linux)
The proper double mode isn't turned on if compiled with SUN Studio.
So that floating math produces slightly different result.
per-file comments:
sql/mysqld.cc
Bug#52208 gis fails on some platforms (Solaris, HP-UX, Linux)
Turn on the 64-bit double mode on for the SUN Studio compiler.
modified:
sql/mysqld.cc
=== modified file 'sql/mysqld.cc'
--- a/sql/mysqld.cc 2010-04-19 08:29:52 +0000
+++ b/sql/mysqld.cc 2010-05-05 05:17:26 +0000
@@ -227,6 +227,9 @@ typedef fp_except fp_except_t;
# ifdef __GNUC__
# define _FPU_GETCW(cw) __asm__ __volatile__("fnstcw %0" : "=m" (*&cw))
# define _FPU_SETCW(cw) __asm__ __volatile__("fldcw %0" : : "m" (*&cw))
+# elif defined(__SUNPRO_CC)
+# define _FPU_GETCW(cw) asm volatile ("fnstcw %0" : "=m" (*&cw))
+# define _FPU_SETCW(cw) asm volatile ("fldcw %0" : : "m" (*&cw))
# else
# define _FPU_GETCW(cw) (cw= 0)
# define _FPU_SETCW(cw)
Attachment: [text/bzr-bundle] bzr/holyfoot@mysql.com-20100505051726-zwvb6jsc1b76zvyr.bundle
Thread |
---|
• bzr commit into mysql-next-mr-bugfixing branch (holyfoot:3171)Bug#52208 | Alexey Botchkov | 6 May |