Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jul 2012 12:47:07 GMT
From:      svn-freebsd-gecko@chruetertee.ch
To:        freebsd-gecko@freebsd.org
Subject:   [SVN-Commit] r860 - branches/experimental/www/seamonkey/files
Message-ID:  <201207081247.q68Cl7OT048579@trillian.chruetertee.ch>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Sun Jul  8 12:47:06 2012
New Revision: 860

Log:
consistently disable floating-point exceptions

Added:
   branches/experimental/www/seamonkey/files/patch-mozilla-js-src-jsnum.cpp

Added: branches/experimental/www/seamonkey/files/patch-mozilla-js-src-jsnum.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/experimental/www/seamonkey/files/patch-mozilla-js-src-jsnum.cpp	Sun Jul  8 12:47:06 2012	(r860)
@@ -0,0 +1,31 @@
+--- mozilla/js/src/jsnum.cpp.orig	2010-01-05 22:35:17.000000000 -0500
++++ mozilla/js/src/jsnum.cpp	2010-01-11 05:10:19.000000000 -0500
+@@ -49,6 +49,9 @@
+ // Avoid warnings about ASSERT being defined by the assembler as well.
+ #undef ASSERT
+ 
++#if defined(__FreeBSD__)
++#include <sys/param.h>
++#endif
+ #ifdef XP_OS2
+ #define _PC_53  PC_53
+ #define _MCW_EM MCW_EM
+@@ -691,8 +694,18 @@
+ 
+ #else
+ 
++#if defined(__FreeBSD__)
++#if __BSD_VISIBLE == 0
++#error __BSD_VISIBLE is zero, so fedisableexcept is not defined
++#endif
++#include <fenv.h>
++#define FIX_FPU() ((void)fedisableexcept(FE_ALL_EXCEPT))
++#else
++
+ #define FIX_FPU() ((void)0)
+ 
++#endif /* defined(__FreeBSD__) && __FreeBSD_version >= 503000 */
++
+ #endif
+ 
+ JSBool



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207081247.q68Cl7OT048579>