[llvm-commits] [llvm-gcc-4.2] r71425 - in /llvm-gcc-4.2/trunk/gcc: llvm-convert.cpp llvm-internal.h

Bill Wendling isanbard at gmail.com
Mon May 11 10:18:49 PDT 2009


On Mon, May 11, 2009 at 10:06 AM, Duncan Sands <baldrick at free.fr> wrote:
> Hi Bill,
>
>> This is causing a bootstrap failure in release mode on Darwin. Please
>> investigate.
>
> I don't get this on x86 linux (32 and 64 bit) so it is hard to debug,
> since I don't have access to a darwin box.
>
> The patch turned on extra sanity checking, so it looks like something
> is insane in darwin :)

Blasphemy! :-)

>  Can you please fire up the debugger and dump
> the gcc tree using dump_tree.
>
Sure:

(gdb) p LV
$2 = {
  Ptr = 0x41e25efc,
  Alignment = 1 '\001',
  BitStart = 255 '?',
  BitSize = 255 '?'
}

(gdb) p debug_tree(exp)
 <var_decl 0xf6c850 __dso_handle
    type <void_type 0x41f0ca80 void VOID
        align 8 symtab 2 alias set -1
        LLVM: void
        pointer_to_this <pointer_type 0x41f0caf0>>
    addressable used public external asm-frame-size 0 common VOID file
../../llvm-gcc.src/gcc/config/darwin-crt3.c line 526
    align 8
    LLVM: { }* @__dso_handle>

(gdb) p LV.Ptr->dump()
@__dso_handle = external global { }		; <{ }*> [#uses=0]

Let me know if you need more.

-bw




More information about the llvm-commits mailing list