[LLVMdev] Weird Exception Handling Compilation Bug

Chris Lattner sabre at nondot.org
Mon Sep 10 16:04:46 PDT 2007


On Mon, 10 Sep 2007, Bill Wendling wrote:
> When I compile the following program with llvm-gcc on Mac x86, it segfaults:
> However, if I compile it to a .s file and then compile it with gcc, it
> works fine:
> This is weird. Anyone have an idea of what's going on?

They are probably linking against different libstdc++ versions.  Passing 
-v to the compiler should print the command line passed to the linker.

Note that libstdc++ in the llvm-gcc repo isn't ABI compatible with the mac 
OS X system libstdc++.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list