[cfe-dev] label problem. debug info?

Daniel Dunbar daniel at zuster.org
Wed Sep 17 10:19:41 PDT 2008


This is an LLVM issue, actually I have already filed a bug for it:
http://llvm.org/bugs/show_bug.cgi?id=2075

The problem is that optimization w/ debug info is not well supported.
Using: 'llvm-ld -disable-opt ...' should solve the problem (but, of course,
disable optimization).

 - Daniel

On Wed, Sep 17, 2008 at 6:56 AM, Luís Marques <luismarques at gmail.com> wrote:
> Hello,
> With the following code:
>
> void problem(int i)
>
> {
>
> }
>
> void test()
>
> {
>
> int arg = 0;
>
> problem(arg);
>
> }
>
> And compiling with debug info:
>
> $ clang -emit-llvm-bc -x c -o - test.c -g | llvm-ld -native
> -disable-internalize -o a.out -
>
> I get:
>
> a.out.s:unknown:Undefined local symbol Llabel9
>
> llvm-ld:
>
> This only happens with -g and with -native.
> Should I file this as a clang debug info bug, or is this a LLVM problem?
> Do you have any suggestions for a workaround?
> Luís
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>




More information about the cfe-dev mailing list