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/54728] New: [4.8 regression] ICE in input_gimple_stmt, at gimple-streamer-in.c:254


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

             Bug #: 54728
           Summary: [4.8 regression] ICE in input_gimple_stmt, at
                    gimple-streamer-in.c:254
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dimhen@gmail.com


gcc version 4.8.0 20120927 (experimental) [trunk revision 191799] (GCC)

$ cat fun1.cpp
#include <sstream>
#include <string>

void fun1(std::string &s)
{
    std::ostringstream os;
    s = os.str();
}
$ sed 's/fun1/fun2/' < fun1.cpp > fun2.cpp
$ g++ -flto -c fun1.cpp
$ g++ -flto -c fun2.cpp
$ g++ fun1.o fun2.o -flto -flto-partition=none -o libx.so
In member function 'str':
lto1: internal compiler error: in input_gimple_stmt, at
gimple-streamer-in.c:254
0xbf6cfb input_gimple_stmt
    /home/dimhen/src/gcc-current/gcc/gimple-streamer-in.c:253
0xbf6cfb input_bb(lto_input_block*, LTO_tags, data_in*, function*, int)
    /home/dimhen/src/gcc-current/gcc/gimple-streamer-in.c:310
0x70d47c input_function
    /home/dimhen/src/gcc-current/gcc/lto-streamer-in.c:870
0x70d47c lto_read_body
    /home/dimhen/src/gcc-current/gcc/lto-streamer-in.c:994
0x70d47c lto_input_function_body(lto_file_decl_data*, tree_node*, char const*)
    /home/dimhen/src/gcc-current/gcc/lto-streamer-in.c:1039
0x4cc9ca lto_materialize_function
    /home/dimhen/src/gcc-current/gcc/lto/lto.c:226
0x4cc9ca materialize_cgraph
    /home/dimhen/src/gcc-current/gcc/lto/lto.c:3045
0x4d137a lto_main()
    /home/dimhen/src/gcc-current/gcc/lto/lto.c:3307
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

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc_current/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /home/dimhen/src/gcc-current/configure
--prefix=/usr/local/gcc_current --with-multilib-list=m64 --enable-__cxa_atexit
--enable-shared --enable-checking=df,fold,rtl,tree,yes
--enable-gnu-unique-object --enable-linker-build-id
--enable-languages=c,c++,lto --enable-plugin
--enable-version-specific-runtime-libs
Thread model: posix
gcc version 4.8.0 20120927 (experimental) [trunk revision 191799] (GCC)


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