qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] softfloat: fix for C99


From: Avi Kivity
Subject: Re: [Qemu-devel] [PATCH] softfloat: fix for C99
Date: Thu, 09 Feb 2012 18:38:58 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0

On 02/09/2012 06:20 PM, Andreas Färber wrote:
> Am 27.12.2011 17:15, schrieb Andreas Färber:
> > Am 27.12.2011 16:11, schrieb Avi Kivity:
> >> C99 appears to consider compound literals as non-constants, and complains
> >> when they are used in static initializers.  Switch to ordinary initializer
> >> syntax.
> >>
>
> Reported-by: Andreas Färber <address@hidden>
>
> >> Signed-off-by: Avi Kivity <address@hidden>
> > 
> > Acked-by: Andreas Färber <address@hidden>
> > 
> > For the record, tested with --extra-cflags=-std=gnu99.
> > 
> >> 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 = const_float64(LIT64( 
> >> 0xFFF8000000000000 ));
> >>  #define floatx80_default_nan_low  LIT64( 0xC000000000000000 )
> >>  #endif
> >>  
> >> -const floatx80 floatx80_default_nan = 
> >> make_floatx80(floatx80_default_nan_high,
> >> -                                                    
> >> floatx80_default_nan_low);
> >> +const floatx80 floatx80_default_nan
> >> +    = 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.
>
> Ping! Avi, you didn't indicate whether you were going to simplify this
> patch or whether you're waiting for someone to apply it as is?
>

Actually I forgot all about it.  If everyone's okay with it as is I'd
like it to be applied, otherwise I'll respin.  Copying some maintainers
completely at random.

-- 
error compiling committee.c: too many arguments to function




reply via email to

[Prev in Thread] Current Thread [Next in Thread]