From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RfZhf-00010y-FB for qemu-devel@nongnu.org; Tue, 27 Dec 2011 11:16:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RfZhd-0008EN-CF for qemu-devel@nongnu.org; Tue, 27 Dec 2011 11:16:39 -0500 Received: from cantor2.suse.de ([195.135.220.15]:50665 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RfZhd-0008Do-64 for qemu-devel@nongnu.org; Tue, 27 Dec 2011 11:16:37 -0500 Message-ID: <4EF9EF17.4050703@suse.de> Date: Tue, 27 Dec 2011 17:15:19 +0100 From: =?ISO-8859-15?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1324998680-16003-1-git-send-email-avi@redhat.com> In-Reply-To: <1324998680-16003-1-git-send-email-avi@redhat.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] softfloat: fix for C99 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: qemu-devel@nongnu.org Am 27.12.2011 16:11, schrieb Avi Kivity: > C99 appears to consider compound literals as non-constants, and complai= ns > when they are used in static initializers. Switch to ordinary initiali= zer > syntax. >=20 > Signed-off-by: Avi Kivity Acked-by: Andreas F=E4rber For the record, tested with --extra-cflags=3D-std=3Dgnu99. > diff --git a/fpu/softfloat-specialize.h b/fpu/softfloat-specialize.h > index c5e2dab..4902450 100644 > --- a/fpu/softfloat-specialize.h > +++ b/fpu/softfloat-specialize.h > @@ -89,8 +89,8 @@ const float64 float64_default_nan =3D const_float64(L= IT64( 0xFFF8000000000000 )); > #define floatx80_default_nan_low LIT64( 0xC000000000000000 ) > #endif > =20 > -const floatx80 floatx80_default_nan =3D make_floatx80(floatx80_default= _nan_high, > - floatx80_default_n= an_low); > +const floatx80 floatx80_default_nan > + =3D make_floatx80_init(floatx80_default_nan_high, floatx80_default= _nan_low); Calling it init_floatx80 would avoid the line break, but I'm okay with it either way. Thanks, Andreas $ gcc --version gcc (SUSE Linux) 4.6.2 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is N= O warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOS= E. --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg