[LLVMdev] [PATCH] gcc-4.8.1 -flto, error for visibility of LLVMX86CompilationCallback2?
Patrik Hägglund H
patrik.h.hagglund at ericsson.com
Wed Jun 12 01:48:50 PDT 2013
Thanks. Commited as r183824.
/Patrik Hägglund
-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Duncan Sands
Sent: den 12 juni 2013 10:03
To: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] [PATCH] gcc-4.8.1 -flto, error for visibility of LLVMX86CompilationCallback2?
Hi Patrik,
On 12/06/13 09:48, Patrik Hägglund H wrote:
> Thanks, now it links.
>
> If nobody objects, I will commit the following patch:
>
> diff --git a/lib/Target/X86/X86JITInfo.cpp b/lib/Target/X86/X86JITInfo.cpp
> index 44d8cce..8acc220 100644
> --- a/lib/Target/X86/X86JITInfo.cpp
> +++ b/lib/Target/X86/X86JITInfo.cpp
> @@ -339,6 +339,8 @@ extern "C" {
> /// must locate the start of the stub or call site and pass it into the JIT
> /// compiler function.
> extern "C" {
> +LLVM_ATTRIBUTE_USED // Fix gcc -flto builds. gcc's LTO (as of 4.8.1) don't sees
> + // references from inline asm.
clang also doesn't see references from inline asm... I suggest you say:
LLVM_ATTRIBUTE_USED // referenced from inline asm.
Ciao, Duncan.
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list