vjaaskel@kizarwexius:~/testdata/c/testi$ cat testi.h int main() { return 0; } vjaaskel@kizarwexius:~/testdata/c/testi$ llvm-gcc -emit-llvm testi.h testi.h:3: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://llvm.org/bugs> for instructions. vjaaskel@kizarwexius:~/testdata/c/testi$ gcc testi.h vjaaskel@kizarwexius:~/testdata/c/testi$ llvm-gcc --version llvm-gcc (GCC) 4.0.1 LLVM (Apple Computer, Inc. build 5449) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Veli-Pekka, Could you please get a stack trace for this? You can do that by running: llvm-gcc -v -emit-llvm testi.h That will produce a command line that llvm-gcc runs (probably cc1) to do the actual work. Simply run that command under a debugger with the options printed out by llvm-gcc and when it fails (segmentation fault), get a stack trace (probably the "where" command). Please post the stack trace here. Thanks, Reid.
I cannot reproduce it here (mingw32, llvm-gcc 2.0cvs as of March). The result is .gch file. Veli-Pekka, have you used 1.9 sources/binaries or built llvm-gcc from svn?
Fixed. http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070507/049421.html
Recent addendum of eraseLocalLLVMValues() breaks this again (However, release branch is happy!)
Sorry, eraseLocalLLVMValues() wasn't commited yet. It seems to be local problem of mine and Duncan's tree :)