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>
On 08/16/2013 01:42 PM, Renato Golin wrote:> On 16 August 2013 20:02, reed kotler <rkotler at mips.com > <mailto: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.right, but what option in clang++ forces it close to g++ for running spec2006 ? for clang it is apparent -std=gnu89 i understand that we have it configured already for test-suite but I also need to be able to run this standalone (outside of test-suite).> > 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/962c4874/attachment.html>
There were build failures on some spec2006 benchmarks with clang. In order to build 400.perlbench, we added -std=gnu89 option. 464.h264ref needed the flag -fsigned-char set, whereas 456.hmmer needed -funsigned-char. From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of reed kotler Sent: Friday, August 16, 2013 4:54 PM To: Renato Golin Cc: LLVM Developers Mailing List Subject: Re: [LLVMdev] running spec2006 with clang On 08/16/2013 01:42 PM, Renato Golin wrote: On 16 August 2013 20:02, reed kotler <rkotler at mips.com<mailto: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. right, but what option in clang++ forces it close to g++ for running spec2006 ? for clang it is apparent -std=gnu89 i understand that we have it configured already for test-suite but I also need to be able to run this standalone (outside of test-suite). 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/20130820/ec62af42/attachment.html>