[LLVMdev] Build failure due to -pedantic?

Jim Laskey jlaskey at apple.com
Fri Nov 3 08:28:34 PST 2006


"Looks to me like the key difference is that we're now using  
__builtin_huge_val() rather than 1e500 for HUGE_VAL, which means  
math.h has changed."

It's a per developer issue - Chris and I need to upgrade.

Cheers,

-- Jim





On Nov 3, 2006, at 12:09 PM, Reid Spencer wrote:

> Chris said something about Xcode fixing this ?  It doesn't happen with
> the GCC 3.4.6 compiler on Linux so that's why I missed it, but I  
> thought
> Chris had fixed it.
>
> Reid.
>
> On Fri, 2006-11-03 at 08:48 -0400, Jim Laskey wrote:
>> The build is failing with;
>>
>> LiveIntervalAnalysis.cpp:218: error: floating constant exceeds range
>> of 'double'
>> LiveIntervalAnalysis.cpp:253: error: floating constant exceeds range
>> of 'double'
>> LiveIntervalAnalysis.cpp:328: error: floating constant exceeds range
>> of 'double'
>> LiveIntervalAnalysis.cpp:1350: error: floating constant exceeds range
>> of 'double'
>>
>> If I disable -pedantic the build succeeds.
>>
>>
>>
>>
>> NOTE: HUGE_VALF should be used instead of (float)HUGE_VAL.  Proposed
>> patch enclosed.
>>
>>
>>
>>
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20061103/3ffb23c4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20061103/3ffb23c4/attachment.bin>


More information about the llvm-dev mailing list