This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/57334] New: ICE: in input_gimple_stmt, at gimple-streamer-in.c:287


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

            Bug ID: 57334
           Summary: ICE: in input_gimple_stmt, at gimple-streamer-in.c:287
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dimhen at gmail dot com

r199075 FAIL

$ cat main.ii 
extern "C" void soap_call_lcdpanel__AskLCDPanelYesNo ();
main ()
{
    soap_call_lcdpanel__AskLCDPanelYesNo ();
}

$ cat a.i
soap_serializeheader ()
{
}

soap_getindependent ()
{
    return;
}

$ cat b.i
static
soap_getindependent ()
{
}

soap_call_lcdpanel__AskLCDPanelYesNo ()
{
    soap_serializeheader ();
}

$ g++ -fpreprocessed -flto -c main.ii
$ gcc -fpreprocessed -c -flto a.i
$ gcc -fpreprocessed -c -flto b.i
$ ar cru libx.a a.o b.o
$ g++ -Ofast -flto -flto-partition=none -o tst main.o libx.a 
In function âsoap_getindependentâ:
lto1: internal compiler error: in input_gimple_stmt, at
gimple-streamer-in.c:287
0x1062235 input_gimple_stmt
    /home/dimhen/src/gcc_current/gcc/gimple-streamer-in.c:286
0x1062235 input_bb(lto_input_block*, LTO_tags, data_in*, function*, int)
    /home/dimhen/src/gcc_current/gcc/gimple-streamer-in.c:345
0x864483 input_function
    /home/dimhen/src/gcc_current/gcc/lto-streamer-in.c:887
0x864483 lto_read_body
    /home/dimhen/src/gcc_current/gcc/lto-streamer-in.c:1011
0x864483 lto_input_function_body(lto_file_decl_data*, tree_node*, char const*)
    /home/dimhen/src/gcc_current/gcc/lto-streamer-in.c:1055
0x587052 lto_materialize_function
    /home/dimhen/src/gcc_current/gcc/lto/lto.c:226
0x587052 materialize_cgraph
    /home/dimhen/src/gcc_current/gcc/lto/lto.c:3084
0x58e708 lto_main()
    /home/dimhen/src/gcc_current/gcc/lto/lto.c:3348
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: g++ returned 1 exit status
/usr/bin/ld: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]