bug-gnulib
[Top][All Lists]
Advanced

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

Re: strtod.c compilation failure on i386/Solaris 10


From: Simon Josefsson
Subject: Re: strtod.c compilation failure on i386/Solaris 10
Date: Sat, 12 Apr 2008 11:05:44 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux)

Jim Meyering <address@hidden> writes:

> In wading through coreutils build reports for 60+ systems, I see a new 
> failure:
>
>   strtod.c: In function `rpl_strtod':
>   strtod.c:155: error: incompatible types in assignment
>   strtod.c:170: error: incompatible types in assignment
>   strtod.c:257: error: wrong type argument to unary minus
>   make[3]: *** [strtod.o] Error 1
>
> Here are the lines in question, each followed by cpp-translated code:
>
>                 num = HUGE_VAL;
>           num = __builtin_huge_val;
>
>                 num = NAN;
>           num = __builtin_nan;
>
>   return negative ? -HUGE_VAL : HUGE_VAL;
>   return negative ? -__builtin_huge_val : __builtin_huge_val;
>
>
> SunOS powell 5.10 Generic_127112-11 i86pc i386 i86pc Solaris
> gcc version 3.3

I have seen this as well, see:

http://thread.gmane.org/gmane.comp.encryption.gpg.gnutls.devel/2513

I suspected that the compiler had been built on another system than the
one I used though.  Is this the case for you as well?

Is changing it to HUGE the wrong thing?

/Simon




reply via email to

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