--- llvm-9999/lib/Target/PowerPC/PPCJITInfo.cpp.orig 2012-04-03 13:04:40.105982680 +0900 +++ llvm-9999/lib/Target/PowerPC/PPCJITInfo.cpp 2012-04-03 13:06:30.431122638 +0900 @@ -291,9 +291,10 @@ } #endif -extern "C" void *PPCCompilationCallbackC(unsigned *StubCallAddrPlus4, - unsigned *OrigCallAddrPlus4, - bool is64Bit) { +extern "C" { +static void* LLVM_ATTRIBUTE_USED PPCCompilationCallbackC(unsigned *StubCallAddrPlus4, + unsigned *OrigCallAddrPlus4, + bool is64Bit) { // Adjust the pointer to the address of the call instruction in the stub // emitted by emitFunctionStub, rather than the instruction after it. unsigned *StubCallAddr = StubCallAddrPlus4 - 1; @@ -337,6 +338,7 @@ // stack after we restore all regs. return Target; } +}