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



             Bug #: 57105

           Summary: [4.9 Regression] ICE: in add_insn_before_nobb, at

                    emit-rtl.c:3883 with -Os -fselective-scheduling2 -g

    Classification: Unclassified

           Product: gcc

           Version: 4.9.0

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: rtl-optimization

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: zso...@seznam.cz





Created attachment 29966

  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29966

reduced testcase



Compiler output:

$ gcc -Os -fselective-scheduling2 -g testcase.c

testcase.c: In function 'foo':

testcase.c:16:1: internal compiler error: in add_insn_before_nobb, at

emit-rtl.c:3883

 }

 ^

0x758a1f add_insn_before_nobb

        /mnt/svn/gcc-trunk/gcc/emit-rtl.c:3883

0x761441 add_insn_before(rtx_def*, rtx_def*, basic_block_def*)

        /mnt/svn/gcc-trunk/gcc/emit-rtl.c:3945

0x76447e emit_note_before(insn_note, rtx_def*)

        /mnt/svn/gcc-trunk/gcc/emit-rtl.c:4516

0x7a6b44 change_scope

        /mnt/svn/gcc-trunk/gcc/final.c:1591

0x7acef2 reemit_insn_block_notes

        /mnt/svn/gcc-trunk/gcc/final.c:1640

0x7acef2 final_start_function(rtx_def*, _IO_FILE*, int)

        /mnt/svn/gcc-trunk/gcc/final.c:1733

0x7aff25 rest_of_handle_final

        /mnt/svn/gcc-trunk/gcc/final.c:4331

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.



$ gcc -v                                       

Using built-in specs.

COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc

COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-198366-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper

Target: x86_64-unknown-linux-gnu

Configured with: /mnt/svn/gcc-trunk//configure --enable-checking=yes,rtl,df

--enable-languages=c,c++,lto,fortran

--prefix=/mnt/svn/gcc-trunk/binary-198366-lto-fortran-checking-yes-rtl-df/

--without-cloog --without-ppl

Thread model: posix

gcc version 4.9.0 20130428 (experimental) (GCC) 



Tested revisions:

r198366 - crash

4.8 r198018 - OK

Reply via email to