http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61058
Bug ID: 61058 Summary: [4.7/4.8/4.9/4.10 Regression] ICE: RTL check: expected elt 3 type 'B', have '0' (rtx barrier) in distance_agu_use_in_bb, at config/i386/i386.c:16740 with __builtin_unreachable() Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Created attachment 32731 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32731&action=edit reduced testcase Compiler output: $ gcc -fno-asynchronous-unwind-tables -mtune=atom testcase.c testcase.c: In function 'f': testcase.c:4:1: internal compiler error: RTL check: expected elt 3 type 'B', have '0' (rtx barrier) in distance_agu_use_in_bb, at config/i386/i386.c:17922 } ^ 0xac42d4 rtl_check_failed_type1(rtx_def const*, int, int, char const*, int, char const*) /mnt/svn/gcc-trunk/gcc/rtl.c:754 0xdcc92a distance_agu_use_in_bb /mnt/svn/gcc-trunk/gcc/config/i386/i386.c:17922 0xdd02e9 distance_agu_use /mnt/svn/gcc-trunk/gcc/config/i386/i386.c:17979 0xdd02e9 ix86_lea_outperforms /mnt/svn/gcc-trunk/gcc/config/i386/i386.c:18063 0xffa274 output_89 /mnt/svn/gcc-trunk/gcc/config/i386/i386.md:2081 0x872491 final_scan_insn(rtx_def*, _IO_FILE*, int, int, int*) /mnt/svn/gcc-trunk/gcc/final.c:2919 0x873e3d final(rtx_def*, _IO_FILE*, int) /mnt/svn/gcc-trunk/gcc/final.c:2024 0x87434e rest_of_handle_final /mnt/svn/gcc-trunk/gcc/final.c:4428 0x87434e execute /mnt/svn/gcc-trunk/gcc/final.c:4502 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-210047-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/4.10.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-210047-lto-fortran-checking-yes-rtl-df/ --without-cloog --without-ppl Thread model: posix gcc version 4.10.0 20140504 (experimental) (GCC) Built with RTL checking enabled. Tested revisions: r210047 - ICE 4.9 r209651 - ICE 4.8 r209342 - ICE 4.7 r209345 - ICE 4.6 r197894 - OK