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

             Bug #: 54811
           Summary: [4.8 regression] tree code '�' is not supported in LTO
                    streams
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: ebotca...@gcc.gnu.org
                CC: de...@gcc.gnu.org
              Host: x86_64-suse-linux
            Target: x86_64-suse-linux
             Build: x86_64-suse-linux


This is similar to PR lto/54632.  LTO bootstrap with Ada enabled is broken:

gcc/xgcc -B/home/eric/build/gcc/native-lto/./prev-gcc/
-B/home/eric/install/gcc/x86_64-suse-linux/bin/
-B/home/eric/install/gcc/x86_64-suse-linux/bin/
-B/home/eric/install/gcc/x86_64-suse-linux/lib/ -isystem
/home/eric/install/gcc/x86_64-suse-linux/include -isystem
/home/eric/install/gcc/x86_64-suse-linux/sys-include    -c -g -O2
-flto=jobserver -frandom-seed=1  -gnatpg -gnata -W -Wall -nostdinc -I- -I.
-Iada -I/home/eric/svn/gcc/gcc/ada -I/home/eric/svn/gcc/gcc/ada/gcc-interface
/home/eric/svn/gcc/gcc/ada/sem_attr.adb -o ada/sem_attr.o
+===========================GNAT BUG DETECTED==============================+
| 4.8.0 20121004 (experimental) [trunk revision 192031] (x86_64-suse-linux) GCC
error:|
| tree code '�' is not supported in LTO streams                            |
| Error detected around /home/eric/svn/gcc/gcc/ada/sem_type.ads:65:9       |

raised SYSTEM.ASSERTIONS.ASSERT_FAILURE : namet.adb:655

(gdb) frame 3
#3  0x0000000000e3b45e in write_ts_exp_tree_pointers (ref_p=true, 
    expr=0x7ffff5e47620, ob=0x2533040)
    at /home/eric/svn/gcc/gcc/tree-streamer-out.c:677
677       stream_write_tree (ob, TREE_BLOCK (expr), ref_p);

(gdb) frame 2
#2  lto_output_tree (ob=0x2533040, expr=0x7ffff5d9ce60, ref_p=true, 
    this_ref_p=<optimized out>)
    at /home/eric/svn/gcc/gcc/lto-streamer-out.c:427
427           lto_write_tree (ob, expr, ref_p);
(gdb) p debug_generic_expr(expr)
<<< Unknown tree: � >>>

$2 = void
(gdb) frame 7
#7  0x0000000000e3b370 in write_ts_exp_tree_pointers (ref_p=true, 
    expr=0x7ffff546bc58, ob=0x2533040)
    at /home/eric/svn/gcc/gcc/tree-streamer-out.c:675
675         stream_write_tree (ob, TREE_OPERAND (expr, i), ref_p);
(gdb) p debug_generic_expr(expr)
MEM[(struct sem_type__interp *)&_init + 8B]


(gdb) frame 11
#11 0x0000000000e3a88a in write_ts_decl_common_tree_pointers (ref_p=true, 
    expr=0x7ffff53c4260, ob=0x2533040)
    at /home/eric/svn/gcc/gcc/tree-streamer-out.c:512
512         stream_write_tree (ob, DECL_DEBUG_EXPR (expr), ref_p);
(gdb) p debug_generic_expr(expr)
_init$8

(gdb) frame 15
#15 0x00000000014685b8 in output_gimple_stmt (stmt=0x7ffff4ea5828, 
    ob=0x2533040) at /home/eric/svn/gcc/gcc/gimple-streamer-out.c:138
138               stream_write_tree (ob, op, true);
(gdb) p debug_gimple_stmt(stmt)
# DEBUG _init$8 => it$F$abstract_op_118(D)

Reply via email to