https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68236
Bug ID: 68236 Summary: [6 Regression] selective scheduling with --param=sched-autopref-queue-depth=10 ICEs a lot @ aarch64 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Created attachment 36662 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36662&action=edit testcase Compiler output: $ cc1 930506-2.c -Os -fselective-scheduling2 --param=sched-autopref-queue-depth=10 f1 ___ 930506-2.c: In function '___': 930506-2.c:4:17: warning: implicit declaration of function 'foo' [-Wimplicit-function-declaration] { int ___() { foo(1); } bar(___); } ^ 930506-2.c: In function 'f1': 930506-2.c:4:27: warning: implicit declaration of function 'bar' [-Wimplicit-function-declaration] { int ___() { foo(1); } bar(___); } ^ ___ f2 ___ ___ Analyzing compilation unit Performing interprocedural optimizations <*free_lang_data> <visibility> <build_ssa_passes> <opt_local_passes> <free-inline-summary> <whole-program> <profile_estimate> <icf> <devirt> <cp> <targetclone> <inline> <pure-const> <static-var> <single-use> <comdats>Assembling functions: <dispachercalls> ___ ___ ___ ___ f1 f2 930506-2.c: In function 'f2': 930506-2.c:12:1: internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have '1' (rtx fA}) in insn, at rtl.h:1352 } ^ 0xa97126 rtl_check_failed_type2(rtx_def const*, int, int, int, char const*, int, char const*) /repo/gcc-trunk/gcc/rtl.c:802 0x562fb1 rtx_insn_list::insn() const /repo/gcc-trunk/gcc/rtl.h:1352 0x111707c rtx_insn_list::insn() const /repo/gcc-trunk/gcc/rtl.h:1352 0x111707c autopref_multipass_dfa_lookahead_guard(rtx_insn*, int) /repo/gcc-trunk/gcc/haifa-sched.c:5879 0xad7afa invoke_dfa_lookahead_guard /repo/gcc-trunk/gcc/sel-sched.c:4175 0xad7afa find_best_expr /repo/gcc-trunk/gcc/sel-sched.c:4378 0xad7afa fill_insns /repo/gcc-trunk/gcc/sel-sched.c:5523 0xad889d schedule_on_fences /repo/gcc-trunk/gcc/sel-sched.c:7342 0xad889d sel_sched_region_2 /repo/gcc-trunk/gcc/sel-sched.c:7480 0xad9b3b sel_sched_region_1 /repo/gcc-trunk/gcc/sel-sched.c:7522 0xad9b3b sel_sched_region(int) /repo/gcc-trunk/gcc/sel-sched.c:7623 0xadb049 run_selective_scheduling() /repo/gcc-trunk/gcc/sel-sched.c:7699 0xab4865 rest_of_handle_sched2 /repo/gcc-trunk/gcc/sched-rgn.c:3625 0xab4865 execute /repo/gcc-trunk/gcc/sched-rgn.c:3769 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. $ xgcc -v Using built-in specs. COLLECT_GCC=/repo/build-trunk-229712-checking-yes-rtl-df-nographite-aarch64/gcc/xgcc Target: aarch64-unknown-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-checking=yes,rtl,df --without-cloog --without-ppl --without-isl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=aarch64-unknown-linux-gnu --with-ld=/usr/bin/aarch64-unknown-linux-gnu-ld --with-as=/usr/bin/aarch64-unknown-linux-gnu-as --with-sysroot=/chroot/aarch64 --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-229712-checking-yes-rtl-df-nographite-aarch64 Thread model: posix gcc version 6.0.0 20151103 (experimental) (GCC) Running the whole (C and C++ testsuite) with: make -k check RUNTESTFLAGS="--target_board=unix/-fselective-scheduling/-fselective-scheduling2/--param=sched-autopref-queue-depth=10" results in many ICEs: $ find . -name '*.log' | grep -v 'config[.]log' | xargs grep '[Ii]nternal compiler error:' | grep -v ':FAIL:' | grep -v /pch/ | tr -d '\r' | cut -f5- -d: | sort | uniq -c | sort -n 2 internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have 'A' (rtx [¸) in insn, at rtl.h:1352 2 internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have 'L' (rtx 1ÀéÁïÿÿLL$`MøLáLòHÞHïèðÅ) in insn, at rtl.h:1352 3 internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have 'w' (rtx const_int) in insn, at rtl.h:1352 3 internal compiler error: Segmentation fault 3 internal compiler error: RTL check: access of elt 0 of 'return' with last elt -1 in insn, at rtl.h:1352 3 internal compiler error: RTL check: access of elt 1 of 'use' with last elt 0 in next, at rtl.h:1346 3 internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have '1' (rtx J¯§) in insn, at rtl.h:1352 3 internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have 'H' (rtx ¸h) in insn, at rtl.h:1352 3 internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have '¸' (rtx ¸6) in insn, at rtl.h:1352 6 internal compiler error: in safe_as_a, at is-a.h:205 6 internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have '0' (rtx value) in insn, at rtl.h:1352 9 internal compiler error: in autopref_multipass_dfa_lookahead_guard, at haifa-sched.c:5867 12 12 internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have 'i' (rtx address) in insn, at rtl.h:1352 15 internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have '1' (rtx HMéMøÿ´$) in insn, at rtl.h:1352 18 internal compiler error: RTL check: expected code 'reg', have 'subreg' in rhs_regno, at rtl.h:1785 30 internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have '1' (rtx 1ÀéÁïÿÿLL$`MøLáLòHÞHïèðÅ) in insn, at rtl.h:1352 37 internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have '*' (rtx UnKnown) in insn, at rtl.h:1352 113 internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have '1' (rtx fA}) in insn, at rtl.h:1352 166 internal compiler error: in operator[], at vec.h:714 255 internal compiler error: in safe_as_a, at is-a.h:205 426 internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have 'w' (rtx const_int) in insn, at rtl.h:1352 659 internal compiler error: RTL check: expected elt 0 type 'e' or 'u', have 'r' (rtx reg) in insn, at rtl.h:1352 7898 internal compiler error: in autopref_multipass_dfa_lookahead_guard, at haifa-sched.c:5867 22170 internal compiler error: Segmentation fault Tested revisions: r229712 - ICE 5-branch r229658 - OK