Commit 14d483eca0eb5f8b58b4b0317b734d485e4ca181

Authored by blueswir1
1 parent acda94b1

Fix OpenSolaris softfloat warnings

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7102 c046a42c-6fe2-441c-8c8c-71466251a162
configure
@@ -306,6 +306,7 @@ SunOS) @@ -306,6 +306,7 @@ SunOS)
306 audio_drv_list="oss" 306 audio_drv_list="oss"
307 fi 307 fi
308 audio_possible_drivers="oss sdl" 308 audio_possible_drivers="oss sdl"
  309 + OS_CFLAGS=-std=gnu99
309 ;; 310 ;;
310 AIX) 311 AIX)
311 aix="yes" 312 aix="yes"
fpu/softfloat-native.c
@@ -2,6 +2,9 @@ @@ -2,6 +2,9 @@
2 context is supported */ 2 context is supported */
3 #include "softfloat.h" 3 #include "softfloat.h"
4 #include <math.h> 4 #include <math.h>
  5 +#if defined(HOST_SOLARIS)
  6 +#include <fenv.h>
  7 +#endif
5 8
6 void set_float_rounding_mode(int val STATUS_PARAM) 9 void set_float_rounding_mode(int val STATUS_PARAM)
7 { 10 {
fpu/softfloat-native.h
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 * are defined in <iso/math_c99.h> with a compiler directive 20 * are defined in <iso/math_c99.h> with a compiler directive
21 */ 21 */
22 #if defined(HOST_SOLARIS) && (( HOST_SOLARIS <= 9 ) || ((HOST_SOLARIS >= 10) \ 22 #if defined(HOST_SOLARIS) && (( HOST_SOLARIS <= 9 ) || ((HOST_SOLARIS >= 10) \
23 - && (__GNUC__ <= 4))) \ 23 + && (__GNUC__ < 4))) \
24 || (defined(__OpenBSD__) && (OpenBSD < 200811)) 24 || (defined(__OpenBSD__) && (OpenBSD < 200811))
25 /* 25 /*
26 * C99 7.12.3 classification macros 26 * C99 7.12.3 classification macros