public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/44895]  New: Hitting gcc_assert in lto-streamer-out.c:write_symbol
@ 2010-07-09 19:40 bergner at gcc dot gnu dot org
  2010-07-09 20:00 ` [Bug lto/44895] " rguenth at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: bergner at gcc dot gnu dot org @ 2010-07-09 19:40 UTC (permalink / raw)
  To: gcc-bugs

Compiling the gcc.c-torture/compile/20011119-2.c test case on powerpc64-linux,
we get the following ICE with today's trunk:

bergner@granola3p01:~/gcc/BUGS>
/data3/bergner/gcc/build/gcc-mainline-r161924-debug/gcc/xgcc
-B/data3/bergner/gcc/build/gcc-mainline-r161924-debug/gcc/   -O2 -flto  -w -S
-m32
/home/bergner/gcc/gcc-mainline-r161924/gcc/testsuite/gcc.c-torture/compile/20011119-2.c
/home/bergner/gcc/gcc-mainline-r161924/gcc/testsuite/gcc.c-torture/compile/20011119-2.c:12:1:
internal compiler error: in write_symbol, at lto-streamer-out.c:2333
Please submit a full bug report,
with preprocessed source if appropriate.

This is the assert:

     /* When something is defined, it should have a node attached.
         FIXME: For fortran this is still not the case since wrapup global
         decls is done after streaming.  */
      gcc_assert (alias || TREE_CODE (t) != FUNCTION_DECL
                  || (cgraph_get_node (t)
                      && cgraph_get_node (t)->analyzed));


Backtrace:

#0  fancy_abort (file=0x10c81e88
"/home/bergner/gcc/gcc-mainline-r161924/gcc/lto-streamer-out.c", line=2333, 
    function=0x10c81830 "write_symbol") at
/home/bergner/gcc/gcc-mainline-r161924/gcc/diagnostic.c:879
#1  0x00000000109302fc in write_symbol (cache=0x10ec6430, stream=0xfffffffe450,
t=0x4000049a800, seen=0x10eb4840, alias=0 '\000')
    at /home/bergner/gcc/gcc-mainline-r161924/gcc/lto-streamer-out.c:2331
#2  0x000000001093647c in produce_symtab (set=0x400003743e0,
vset=0x40000374420)
    at /home/bergner/gcc/gcc-mainline-r161924/gcc/lto-streamer-out.c:2402
#3  produce_asm_for_decls (set=0x400003743e0, vset=0x40000374420)
    at /home/bergner/gcc/gcc-mainline-r161924/gcc/lto-streamer-out.c:2527
#4  0x00000000103d9858 in ipa_write_summaries_2 (pass=0x10cf9b08,
set=0x400003743e0, vset=0x40000374420, state=0x10ec1c80)
    at /home/bergner/gcc/gcc-mainline-r161924/gcc/passes.c:1652
#5  0x00000000103d9b54 in ipa_write_summaries_1 () at
/home/bergner/gcc/gcc-mainline-r161924/gcc/passes.c:1682
#6  ipa_write_summaries () at
/home/bergner/gcc/gcc-mainline-r161924/gcc/passes.c:1738
#7  0x00000000106fd190 in ipa_passes () at
/home/bergner/gcc/gcc-mainline-r161924/gcc/cgraphunit.c:1879
#8  cgraph_optimize () at
/home/bergner/gcc/gcc-mainline-r161924/gcc/cgraphunit.c:1920
#9  0x00000000106fd574 in cgraph_finalize_compilation_unit () at
/home/bergner/gcc/gcc-mainline-r161924/gcc/cgraphunit.c:1171
#10 0x00000000100a76d8 in c_write_global_declarations () at
/home/bergner/gcc/gcc-mainline-r161924/gcc/c-decl.c:9698
#11 0x00000000104a5060 in compile_file (argc=35, argv=0xfffffffedd8) at
/home/bergner/gcc/gcc-mainline-r161924/gcc/toplev.c:997
#12 do_compile (argc=35, argv=0xfffffffedd8) at
/home/bergner/gcc/gcc-mainline-r161924/gcc/toplev.c:2340
#13 toplev_main (argc=35, argv=0xfffffffedd8) at
/home/bergner/gcc/gcc-mainline-r161924/gcc/toplev.c:2381
#14 0x000000001014b180 in main (argc=<value optimized out>, argv=<value
optimized out>)
    at /home/bergner/gcc/gcc-mainline-r161924/gcc/main.c:35


(gdb) p alias
$13 = 0 '\000'

(gdb) p t->base.code
$14 = FUNCTION_DECL

(gdb) call debug_tree(t)
 <function_decl 0x4000049a800 foo
    type <function_type 0x40000414638
        type <integer_type 0x40000410498 int public SI
            size <integer_cst 0x400003106b8 constant 32>
            unit size <integer_cst 0x400003103c0 constant 4>
            align 32 symtab 0 alias set 3 canonical type 0x40000410498
precision 32 min <integer_cst 0x40000310640 -2147483648> max <integer_cst
0x40000310668 2147483647>
            pointer_to_this <pointer_type 0x40000411500>>
        SI size <integer_cst 0x400003106b8 32> unit size <integer_cst
0x400003103c0 4>
        align 32 symtab 0 alias set -1 canonical type 0x40000414638
        arg-types <tree_list 0x40000310e38 value <void_type 0x40000410e70
void>>
        pointer_to_this <pointer_type 0x4000047c438>>
    addressable used public static weak decl_5 SI file
/home/bergner/gcc/gcc-mainline-r161924/gcc/testsuite/gcc.c-torture/compile/20011119-2.c
line 9 col 12 align 32 attributes <tree_list 0x400004685c0> initial <error_mark
0x40000391bf0> chain <function_decl 0x4000049a900 bar>>

(gdb) p cgraph_get_node (t)->analyzed
$15 = 0


-- 
           Summary: Hitting gcc_assert in lto-streamer-out.c:write_symbol
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bergner at gcc dot gnu dot org
 GCC build triplet: powerpc64-linux
  GCC host triplet: powerpc64-linux
GCC target triplet: powerpc64-linux


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug lto/44895] Hitting gcc_assert in lto-streamer-out.c:write_symbol
  2010-07-09 19:40 [Bug lto/44895] New: Hitting gcc_assert in lto-streamer-out.c:write_symbol bergner at gcc dot gnu dot org
@ 2010-07-09 20:00 ` rguenth at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-09 20:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2010-07-09 19:59 -------


*** This bug has been marked as a duplicate of 44845 ***


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-09 20:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-09 19:40 [Bug lto/44895] New: Hitting gcc_assert in lto-streamer-out.c:write_symbol bergner at gcc dot gnu dot org
2010-07-09 20:00 ` [Bug lto/44895] " rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).