components/stdcxx/patches/031-NO_SIGNALING_NAN.cpp.patch
author Shawn Walker-Salas <shawn.walker@oracle.com>
Mon, 23 Nov 2015 15:33:43 -0800
changeset 5125 34cc580c62c2
parent 402 94ae4d75524c
permissions -rw-r--r--
21029732 PKG_CONFIG_PATH should be included in CONFIGURE_ENV and BUILD_ENV 21029735 shared-macros should define service manifest and method macros 21093823 sample-manifest should omit or comment "standard" directories and certain files 21144358 configure scripts usually detect wrong host for 64-bit builds 21157847 shared-macros.mk instructions have a typo for studio c99 mode 22067225 common make-rules desired for simplifying makefiles 22067806 transforms needs expanding for desktop services

--- stdcxx-4.2.1/etc/config/src/NO_SIGNALING_NAN.cpp	2008-04-24 20:25:44.000000000 -0400
+++ stdcxx-4.2.1/etc/config/src/NO_SIGNALING_NAN.cpp	2009-03-28 17:29:13.671941000 -0400
@@ -37,21 +37,9 @@
 
 #ifndef _RWSTD_NO_INFINITY
 
-#  if defined _RWSTD_DBL_SNAN_BITS
-
-union {
-    char bits[sizeof (double)];
-    double val;
-} snan = { _RWSTD_DBL_SNAN_BITS };
-
-// assignment or initialization should not trap
-static double d = snan.val;
-
-#  else   // if !defined (_RWSTD_DBL_SNAN_BITS)
-
 double foo ()
 {
-    const int endian = 1;
+    const unsigned int endian = 1;
 
     // compute infinity (division may trap)
     double x = 0.0;
@@ -65,9 +53,6 @@
 
 static double d = foo ();
 
-#  endif   // _RWSTD_DBL_SNAN_BITS
-
-
 #endif   // _RWSTD_NO_INFINITY
 
 
@@ -85,7 +70,7 @@
 
 #  pragma STDC FENV_ACCESS ON
 
-    const int all = 0
+    const unsigned int all = 0
 
 #  ifdef FE_ALL_EXCEPT
         | FE_ALL_EXCEPT |