qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Blue Swirl <blauwirbel@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [7102] Fix OpenSolaris softfloat warnings
Date: Mon, 13 Apr 2009 16:27:08 +0000	[thread overview]
Message-ID: <E1LtP00-0008NK-DO@cvs.savannah.gnu.org> (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
===================================================================
--- trunk/configure	2009-04-13 16:23:22 UTC (rev 7101)
+++ trunk/configure	2009-04-13 16:27:08 UTC (rev 7102)
@@ -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
===================================================================
--- trunk/fpu/softfloat-native.c	2009-04-13 16:23:22 UTC (rev 7101)
+++ trunk/fpu/softfloat-native.c	2009-04-13 16:27:08 UTC (rev 7102)
@@ -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
===================================================================
--- trunk/fpu/softfloat-native.h	2009-04-13 16:23:22 UTC (rev 7101)
+++ trunk/fpu/softfloat-native.h	2009-04-13 16:27:08 UTC (rev 7102)
@@ -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

                 reply	other threads:[~2009-04-13 16:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1LtP00-0008NK-DO@cvs.savannah.gnu.org \
    --to=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).