http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50568

--- Comment #22 from H.J. Lu <hjl.tools at gmail dot com> 2011-09-29 22:23:53 
UTC ---
(In reply to comment #18)
> Created attachment 25384 [details]
> fix + splay tree
> 
> I have some unrelated trouble with a 32bit bootstrap currently.
> 
> This patch should fix all the problems with the splay tree, by allocating
> the key separately.
> 
> Can you give it a test please? Thanks

Doesn't work:

gdb) bt
#0  0x080def1f in lto_splay_compare_ids (a=484680112, b=153199512)
    at /export/gnu/import/git/gcc/gcc/lto/lto.c:1109
#1  0x08d26ee8 in splay_tree_splay (sp=0x921a240, key=484680112)
    at /export/gnu/import/git/gcc/libiberty/splay-tree.c:149
#2  0x08d274ef in splay_tree_lookup (sp=0x921a240, key=484680112)
    at /export/gnu/import/git/gcc/libiberty/splay-tree.c:456
#3  0x080dec01 in create_subid_section_table (slot=0x921a168, data=0x921a240)
    at /export/gnu/import/git/gcc/gcc/lto/lto.c:1022
#4  0x08d21882 in htab_traverse_noresize (htab=0x919bf50, 
    callback=0x80debb4 <create_subid_section_table>, info=0x921a240)
    at /export/gnu/import/git/gcc/libiberty/hashtab.c:784
#5  0x08d218ea in htab_traverse (htab=0x919bf50, 
    callback=0x80debb4 <create_subid_section_table>, info=0x921a240)
    at /export/gnu/import/git/gcc/libiberty/hashtab.c:800
#6  0x080def8a in lto_file_read (file=0x919c9f0, resolution_file=0x9219fe0, 
    count=0xffffd08c) at /export/gnu/import/git/gcc/gcc/lto/lto.c:1132
#7  0x080e5a43 in read_cgraph_and_symbols (nfiles=1, fnames=0x91a8060)
    at /export/gnu/import/git/gcc/gcc/lto/lto.c:2496
#8  0x080e6196 in lto_main () at /export/gnu/import/git/gcc/gcc/lto/lto.c:2809
#9  0x085dadfb in compile_file ()
    at /export/gnu/import/git/gcc/gcc/toplev.c:565
#10 0x085dcf2e in do_compile () at /export/gnu/import/git/gcc/gcc/toplev.c:1925
#11 0x085dd0b0 in toplev_main (argc=16, argv=0x9181450)
---Type <return> to continue, or q <return> to quit---
    at /export/gnu/import/git/gcc/gcc/toplev.c:2001
#12 0x080e8be7 in main (argc=16, argv=0xffffd224)
    at /export/gnu/import/git/gcc/gcc/main.c:36
(gdb)

Reply via email to