MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Alexey Botchkov Date:May 13 2010 3:36pm
Subject:bzr commit into mysql-next-mr-bugfixing branch (holyfoot:3178)
Bug#52208
View as plain text  
#At file:///home/hf/work/mysql_common/52208/ based on revid:alik@stripped

 3178 Alexey Botchkov	2010-05-13
      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.
      
        mysql-test/collections/default.experimental
      Bug#52208      gis fails on some platforms (Solaris, HP-UX, Linux)
           gis test enabled

    modified:
      mysql-test/collections/default.experimental
      sql/mysqld.cc
=== modified file 'mysql-test/collections/default.experimental'
--- a/mysql-test/collections/default.experimental	2010-05-11 12:02:02 +0000
+++ b/mysql-test/collections/default.experimental	2010-05-13 15:35:02 +0000
@@ -9,7 +9,6 @@ funcs_1.myisam_views @solaris           
 innodb.innodb_information_schema         # Bug#48883 2010-05-11 alik Test "innodb_information_schema" takes fewer locks than expected
 
 main.func_math @freebsd                  # Bug#43020 2010-05-04 alik main.func_math fails on FreeBSD in PB2
-main.gis @solaris                        # Bug#52208 2010-04-26 alik gis fails on some platforms (Solaris, HP-UX, Linux)
 main.gis-rtree @freebsd                  # Bug#38965 2010-05-04 alik test cases gis-rtree, type_float, type_newdecimal fail in embedded server
 main.information_schema                  # Bug#47449 2009-09-19 alik main.information_schema and innodb.innodb_information_schema fail sporadically
 main.lock_multi_bug38499                 # Bug#47448 2009-09-19 alik main.lock_multi_bug38499 times out sporadically

=== modified file 'sql/mysqld.cc'
--- a/sql/mysqld.cc	2010-04-19 08:29:52 +0000
+++ b/sql/mysqld.cc	2010-05-13 15:35:02 +0000
@@ -224,9 +224,9 @@ typedef fp_except fp_except_t;
 # define fpu_control_t unsigned int
 # define _FPU_EXTENDED 0x300
 # define _FPU_DOUBLE 0x200
-# ifdef __GNUC__
-#  define _FPU_GETCW(cw) __asm__ __volatile__("fnstcw %0" : "=m" (*&cw))
-#  define _FPU_SETCW(cw) __asm__ __volatile__("fldcw %0" : : "m" (*&cw))
+# if defined(__GNUC__) || 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-20100513153502-9vbcc9fq16ues193.bundle
Thread
bzr commit into mysql-next-mr-bugfixing branch (holyfoot:3178)Bug#52208Alexey Botchkov14 May