From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYehO-0001Nl-Os for qemu-devel@nongnu.org; Wed, 26 Apr 2006 03:44:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYehM-0001NZ-AP for qemu-devel@nongnu.org; Wed, 26 Apr 2006 03:44:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYehM-0001NW-5O for qemu-devel@nongnu.org; Wed, 26 Apr 2006 03:44:32 -0400 Received: from [68.230.240.38] (helo=eastrmmtao01.cox.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FYejz-0002vO-Ld for qemu-devel@nongnu.org; Wed, 26 Apr 2006 03:47:15 -0400 Message-ID: <15450564.1146037468568.JavaMail.root@eastrmwml05.mgt.cox.net> Date: Wed, 26 Apr 2006 3:44:28 -0400 From: Ben Taylor Subject: Re: [Qemu-devel] gnu-c99-math.h file MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3289_2783978.1146037468533" Reply-To: sol10x86@cox.net, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ------=_Part_3289_2783978.1146037468533 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit ---- Chris Bagwell wrote: > I just upgraded to current CVS to get all the changes submitted today. > The solaris port commits seems to have added a #include "gnu-c99-math.h" > file to fpu/softfloat-native.h. Apologies. That should have been isolated with a #ifdef __sun__ #include "gnu-c99-math.h" #endif > > This file doesn't exist on my Fedora Core 5 system with gcc32 installed > for compatibility. The mailing archive mentions something about this > missing file being a custom file for the solaris port. Should that file > only be referenced under solaris? correct. I rechecked the patch I sent to Fabrice and the gnu-c99-math.h file is there. > Qemu appears to compile fine on linux if I just comment that line out. > > Chris The following patch and file will correct the issue for solaris and non-solaris system alike. Fabrice - can we get this added to CVS? Regards, Ben ------=_Part_3289_2783978.1146037468533 Content-Type: application/octet-stream; name=fpu-softfloat-patch.diff Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=fpu-softfloat-patch.diff 5a6 > #if !defined(_PRESOLARIS10) 7a9,12 > #endif > #ifdef __sun__ > #include "gnu-c99-math.h" > #endif ------=_Part_3289_2783978.1146037468533 Content-Type: application/octet-stream; name=gnu-c99-math.h Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=gnu-c99-math.h #if defined(__sun__) && defined(__GNUC__) /* * C99 7.12.3 classification macros * and * C99 7.12.14 comparison macros * * ... do not work on Solaris 10 using GNU CC 3.4.x. * Try to workaround the missing / broken C99 math macros. */ #include #define isnormal(x) (fpclass(x) >= FP_NZERO) #define isgreater(x, y) ((!unordered(x, y)) && ((x) > (y))) #define isgreaterequal(x, y) ((!unordered(x, y)) && ((x) >= (y))) #define isless(x, y) ((!unordered(x, y)) && ((x) < (y))) #define islessequal(x, y) ((!unordered(x, y)) && ((x) <= (y))) #define isunordered(x,y) unordered(x, y) #endif ------=_Part_3289_2783978.1146037468533--