gcc ICE (PR13392) and LLVM

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 :slight_smile:

  The correct one is PR 13392:
  13392 – [3.3/3.4 regression] ICE in convert_from_eh_region_ranges_1, at except.c:1133
  
  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?

  The correct one is PR 13392:
  13392 – [3.3/3.4 regression] ICE in convert_from_eh_region_ranges_1, at except.c:1133

Cool!

  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! :slight_smile:

-Chris