Using LTO

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Using LTO

Toralf Niebuhr
Hi

I already asked some questions concerning Linktime-Optimization, but still I can't get it working.
I first asked Chris but since he doesn't use libLTO I send this to the mailing list.

I'm using Xcode 3.2.3 and want to compile my code with clang++ (trunk) and Linktime-Optimization.

My first attempt was "clang++ -O4 -o main *.cpp"
This didn't work because libLTO(trunk) was not in /usr/lib (/Developer/usr/lib).

Linking /usr/local/lib/libLTO.dylib to /usr/local/lib
gives me now the following problem.
http://llvm.org/bugs/show_bug.cgi?id=7565

My ld is "ld64-97.14", installed with XCode 3.2.3.
The gdb output makes me believe that ld is trying to call a function not present in the current libLTO ( "grep -R getSymbolTableInclusion ." ) .
lto::Atom::getSymbolTableInclusion ()

What am I doing wrong?

Toralf Niebuhr
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev