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. -------------- next part -------------- A non-text attachment was scrubbed... Name: HUGE_VAL.patch Type: application/octet-stream Size: 5451 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20061103/49a3055b/attachment.obj> -------------- next part -------------- -------------- 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/49a3055b/attachment.bin>
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
"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>
On Fri, 3 Nov 2006, 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.Reid checked in an autoconf check for this, and I made the makefile check it. LLVM should not build on xcode < 2.4. Please let me know if it doesn't. Thanks, -Chris -- http://nondot.org/sabre/ http://llvm.org/