I used the suite with clang 3.3 a few months ago. If I remember correctly, I ran into the same error seen here: http://lists.cs.uiuc.edu/pipermail/llvmdev/2010-November/036013.html Although it doesn't seem to be a problem with the frontend, adding -std=gnu89, as suggested, fixed everything for me. H. ----- Original Message ----- From: reed kotler Sent: 08/16/13 01:26 AM To: LLVM Developers Mailing List Subject: [LLVMdev] running spec2006 with clang Has anyone been running this? Do you need to use one of the -std= or -ansi or whatever to set the language conformance level of clang to match some assumed gcc level? Tia. Reed _______________________________________________ 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/20130816/b40cceb1/attachment.html>
On 08/15/2013 10:29 PM, Henrique Santos wrote:> I used the suite with clang 3.3 a few months ago. > If I remember correctly, I ran into the same error seen here: > http://lists.cs.uiuc.edu/pipermail/llvmdev/2010-November/036013.html > Although it doesn't seem to be a problem with the frontend, adding > -std=gnu89, as suggested, fixed everything for me. > H.-std=gnu89 is not valid for c++ what did you use for that? tia. Reed>> ----- Original Message ----- >> >> From: reed kotler >> >> Sent: 08/16/13 01:26 AM >> >> To: LLVM Developers Mailing List >> >> Subject: [LLVMdev] running spec2006 with clang >> >> Has anyone been running this? >> >> Do you need to use one of the -std= or -ansi or whatever to set the >> language conformance level of clang to match some assumed gcc level? >> >> Tia. >> >> Reed >> >> >> >> >> >> _______________________________________________ >> 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/20130816/f0158dad/attachment.html>
On 16 August 2013 20:02, reed kotler <rkotler at mips.com> wrote:> -std=gnu89 is not valid for c++ >I think the point here is that this is the default std for GCC but not Clang, so you have to force clang to behave like GCC. For C++, you'll have to force whatever default GCC has for it's C++ standard. Though, GCC 4.8 is getting very close to Clang's behaviour, so those issues are bound to disappear in the near future. cheers, --renato -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130816/4334c8b5/attachment.html>