>From running the testsuite and for the testcase 20021204-1.c 

/home/ramana/cos/build-try/gcc/cc1 -fpreprocessed 20021204-1.i -quiet -dumpbase
20021204-1.c -mtune=generic -auxbase-strip 20021204-1.o -O1 -w -version -flto
-o 20021204-1.s

#0  fancy_abort (file=0xa888740 "P\207\210\nP\207\210\n\t", line=9,
function=0xa888740 "P\207\210\nP\207\210\n\t") at
../../lto/gcc/diagnostic.c:711
#1  0x0879703d in output_expr_operand (ob=0xa88a278, expr=0xb7805f50) at
../../lto/gcc/lto-function-out.c:1200
#2  0x08799303 in output_local_vars (ob=0xa88a278, fn=<value optimized out>) at
../../lto/gcc/lto-function-out.c:1373
#3  0x0879eabe in lto_output (set=0xb7794f0c) at
../../lto/gcc/lto-function-out.c:1968
#4  0x082dd8d9 in ipa_write_summaries_2 (pass=0x8a3fb40, set=0xb7794f0c,
state=0xa88e718) at ../../lto/gcc/passes.c:1403
#5  0x082de7c2 in ipa_write_summaries_1 (set=0xb7794f0c) at
../../lto/gcc/passes.c:1428
#6  0x082de8aa in ipa_write_summaries () at ../../lto/gcc/passes.c:1449
#7  0x08577e08 in cgraph_optimize () at ../../lto/gcc/cgraphunit.c:1266
#8  0x0805f51b in c_write_global_declarations () at ../../lto/gcc/c-decl.c:8045
#9  0x08389399 in toplev_main (argc=15, argv=0xbfa31754) at
../../lto/gcc/toplev.c:991
#10 0x080d8a0b in main (argc=15, argv=0xbfa31754) at ../../lto/gcc/main.c:35


(gdb) p debug_tree (expr)
 <block 0xb7805f50 used
    supercontext <function_decl 0xb781e780 q
        type <function_type 0xb7824144 type <integer_type 0xb779d2f4 int>
            QI
            size <integer_cst 0xb778e508 constant 8>
            unit size <integer_cst 0xb778e524 constant 1>
            align 8 symtab 0 alias set -1 canonical type 0xb77a7798
            pointer_to_this <pointer_type 0xb78241b0>>
        addressable used static no-static-chain decl_5 QI file
/home/ramana/cos/lto/gcc/testsuite/gcc.c-torture/compile/20021204-1.c line 8
col 7 align 8 initial <block 0xb7805f50>
        result <result_decl 0xb7796230 D.1233 type <integer_type 0xb779d2f4
int>
            ignored SI file
/home/ramana/cos/lto/gcc/testsuite/gcc.c-torture/compile/20021204-1.c line 8
col 3
            size <integer_cst 0xb778e690 constant 32>
            unit size <integer_cst 0xb778e47c constant 4>
            align 32 context <function_decl 0xb781e780 q>>
        saved-insns 0xb77990fc>>
$5 = void


There was a similar bug reported for #39000 but that is for fdesc expressions
on ia64 .


-- 
           Summary: [LTO] ICE in output_expr_operand because of BLOCK
                    Expressions.
           Product: gcc
           Version: lto
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ramana dot r at gmail dot com
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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

Reply via email to