https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69012
Bug ID: 69012 Summary: gcc-6.0.0 internal compiler error building libgfortran for mips64el target Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: critical Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: paul.hua.gm at gmail dot com Target Milestone: --- I compiled the gcc version trunk@231140 under platform mips64el. The flowning error occurred. ../../../../gcc-653b0b0/libgfortran/generated/maxval_r4.c: In function ‘maxval_r4’: ../../../../gcc-653b0b0/libgfortran/generated/maxval_r4.c:200:1: error: unrecognizable insn: } ^ (insn 706 705 708 2 (parallel [ (set (mem/c:SI (plus:SI (reg/f:SI 29 $sp) (const_int 16 [0x10])) [11 S4 A32]) (unspec:SI [ (const_int 16 [0x10]) (reg:SI 28 $28) ] UNSPEC_POTENTIAL_CPRESTORE)) (clobber (scratch:SI)) ]) ../../../../gcc-653b0b0/libgfortran/generated/maxval_r4.c:42 -1 (expr_list:REG_DEAD (reg:SI 28 $28) (nil))) ../../../../gcc-653b0b0/libgfortran/generated/maxval_r4.c:200:1: internal compiler error: in get_attr_got, at config/mips/mips.md:694 0x1205cf5bf _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ../../gcc-653b0b0/gcc/rtl-error.c:108 0x1205cf61f _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) ../../gcc-653b0b0/gcc/rtl-error.c:116 0x1209f062b get_attr_got(rtx_insn*) ../../gcc-653b0b0/gcc/config/mips/mips.md:694 0x120925bbf mips_insn_has_flexible_gp_ref_p ../../gcc-653b0b0/gcc/config/mips/mips.c:9927 0x120913813 mips_find_gp_ref ../../gcc-653b0b0/gcc/config/mips/mips.c:9858 0x120923c5f mips_global_pointer ../../gcc-653b0b0/gcc/config/mips/mips.c:9979 0x120923c5f mips_compute_frame_info ../../gcc-653b0b0/gcc/config/mips/mips.c:10350 0x1209322c7 mips_initial_elimination_offset(int, int) ../../gcc-653b0b0/gcc/config/mips/mips.c:10591 0x1205d156b get_initial_register_offset ../../gcc-653b0b0/gcc/rtlanal.c:383 0x1205d1a2b rtx_addr_can_trap_p_1 ../../gcc-653b0b0/gcc/rtlanal.c:618 0x1205d18bb rtx_addr_can_trap_p_1 ../../gcc-653b0b0/gcc/rtlanal.c:679 0x1205d72cf may_trap_p_1(rtx_def const*, unsigned int) ../../gcc-653b0b0/gcc/rtlanal.c:2819 0x1202a1c47 can_move_insns_across(rtx_insn*, rtx_insn*, rtx_insn*, rtx_insn*, basic_block_def*, bitmap_head*, bitmap_head*, rtx_insn**) ../../gcc-653b0b0/gcc/df-problems.c:4156 0x120b25bab dead_or_predicable ../../gcc-653b0b0/gcc/ifcvt.c:5099 0x120b2aca7 find_if_case_1 ../../gcc-653b0b0/gcc/ifcvt.c:4791 0x120b2aca7 find_if_header ../../gcc-653b0b0/gcc/ifcvt.c:4194 0x120b2aca7 if_convert ../../gcc-653b0b0/gcc/ifcvt.c:5325 0x120b2bcbf execute ../../gcc-653b0b0/gcc/ifcvt.c:5515 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://bugs.loongnix.org/> for instructions. The trunk@231896 occurred as same. The cmd are : /home/xuchenghua/GCC/gcc_git_trunk_231896_obj/./gcc/xgcc -B/home/xuchenghua/GCC/gcc_git_trunk_231896_obj/./gcc/ -B/home/xuchenghua/toolchain/gcc-trunk-231896/mips6 4el-redhat-linux/bin/ -B/home/xuchenghua/toolchain/gcc-trunk-231896/mips64el-redhat-linux/lib/ -isystem /home/xuchenghua/toolchain/gcc-trunk-231896/mips64el-redhat-linux/include -isystem /home/xuc henghua/toolchain/gcc-trunk-231896/mips64el-redhat-linux/sys-include -mabi=32 -DHAVE_CONFIG_H -I. -I../../../../gcc_git_trunk/libgfortran -iquote../../../../gcc_git_trunk/libgfortran/io -I../../.. /../gcc_git_trunk/libgfortran/../gcc -I../../../../gcc_git_trunk/libgfortran/../gcc/config -I../../.././gcc -I../../../../gcc_git_trunk/libgfortran/../libgcc -I../../libgcc -I../../../../gcc_git_t runk/libgfortran/../libbacktrace -I../../libbacktrace -I../libbacktrace -std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-fu nction-declaration -Werror=vla -fcx-fortran-rules -ffunction-sections -fdata-sections -std=gnu11 -g -O2 -minterlink-mips16 -Wunknown-pragmas -MT maxval_r4.lo -MD -MP -MF .deps/maxval_r4.Tpo -c ../ ../../../gcc_git_trunk/libgfortran/generated/maxval_r4.c -o maxval_r4.o Configured with: $ ../gcc_git_trunk/configure --prefix=/home/xuchenghua/toolchain/gcc-trunk-231896 --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,objc,obj-c++,fortran,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-arch=mips64r2 --with-abi=64 --with-multilib-list=32,n32,64 --enable-gnu-indirect-function --with-long-double-128 --build=mips64el-redhat-linux --with-pkgversion=gcc 20151222 commit: gcc-trunk-231896