Hi LLVMers, there were a gcc ICE problem discussed in current mail list. Chris was right here: http://mail.cs.uiuc.edu/pipermail/llvmdev/2003-December/000693.html saying that the PR 12544 is not really the corresponding issue :) The correct one is PR 13392: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13392 Interesting fact is that -O2 (or -O3) goes somehow around this problem. It looks like -O2 is not used here: /home/vak/ssrc/llvm/mklib --tag=disable-shared --silent --mode=compile g++ -c -I/home/vak/ssrc/llvm/lib/Support -I/home/vak/ssrc/llvm/lib/Support -I/home/vak/ssrc/llvm/include -I/home/vak/ssrc/llvm/include -I../../include -I/home/vak/ssrc/llvm/include -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -Wall -W -Wwrite-strings -Wno-unused -g -D_DEBUG CommandLine.cpp -o /home/vak/ssrc/llvm/lib/Support/Debug/CommandLine.lo and in some other LLVM libs. Is it intended? BTW, adding -O2 really does help. Any comments? --- kind regards, Valery A.Khamenya
> The correct one is PR 13392: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13392Cool!> Interesting fact is that -O2 (or -O3) goes somehow around this > problem. It looks like -O2 is not used here: > > /home/vak/ssrc/llvm/mklib --tag=disable-shared --silent --mode=compile g++ -c -I/home/vak/ssrc/llvm/lib/Support -I/home/vak/ssrc/llvm/lib/Support -I/home/vak/ssrc/llvm/include -I/home/vak/ssrc/llvm/include -I../../include -I/home/vak/ssrc/llvm/include -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -Wall -W -Wwrite-strings -Wno-unused -g -D_DEBUG CommandLine.cpp -o /home/vak/ssrc/llvm/lib/Support/Debug/CommandLine.lo > > and in some other LLVM libs. Is it intended?Yup, by default, LLVM builds a "debug" build - suitable for hacking on. If you want an optimized build, do 'make ENABLE_OPTIMIZED=1', and look in lib/Release and tools/Release for the results. Hopefully this will be fixed in GCC soon! :) -Chris -- http://llvm.cs.uiuc.edu/ http://www.nondot.org/~sabre/Projects/
Reasonably Related Threads
- [LLVMdev] redhat 9, compiling llvm-1.0.tar.gz
- [LLVMdev] SlowOperationInformer.cpp:55: error: `SIGALRM' undeclared (first use this functi
- [LLVMdev] Link error with TOOLLINKOPTS=-ldbghelp on MinGW
- no rtp after dns query
- [LLVMdev] llvm 1.0, g++, SuSE 9, internal compiler error