Commit 14d483eca0eb5f8b58b4b0317b734d485e4ca181
1 parent
acda94b1
Fix OpenSolaris softfloat warnings
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7102 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
3 changed files
with
5 additions
and
1 deletions
configure
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 |