Skip to contentSkip to conversation

[7102] Fix OpenSolaris softfloat warnings

Qemu-devel Blue Swirl 1 participant 1 message Apr 13, 2009

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Revision: 7102

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7102
Author:   blueswir1
Date:     2009-04-13 16:27:08 +0000 (Mon, 13 Apr 2009)

Log Message:
-----------
Fix OpenSolaris softfloat warnings

Modified Paths:
--------------
trunk/configure
trunk/fpu/softfloat-native.c
trunk/fpu/softfloat-native.h

Modified: trunk/configure
===================================================================

configure +1 -0
@@ -306,6 +306,7 @@
         audio_drv_list="oss"
     fi
     audio_possible_drivers="oss sdl"
+    OS_CFLAGS=-std=gnu99
 ;;
 AIX)
 aix="yes"

Modified: trunk/fpu/softfloat-native.c
===================================================================

fpu/softfloat-native.c +3 -0
@@ -2,6 +2,9 @@
    context is supported */
 #include "softfloat.h"
 #include <math.h>
+#if defined(HOST_SOLARIS)
+#include <fenv.h>
+#endif
 
 void set_float_rounding_mode(int val STATUS_PARAM)
 {

Modified: trunk/fpu/softfloat-native.h
===================================================================

fpu/softfloat-native.h +1 -1
@@ -20,7 +20,7 @@
  *   are defined in <iso/math_c99.h> with a compiler directive
  */
 #if defined(HOST_SOLARIS) && (( HOST_SOLARIS <= 9 ) || ((HOST_SOLARIS >= 10) \
-                                                        && (__GNUC__ <= 4))) \
+                                                        && (__GNUC__ < 4))) \
     || (defined(__OpenBSD__) && (OpenBSD < 200811))
 /*
  * C99 7.12.3 classification macros