Bug 70292 - ICE in verify_target_availability, at sel-sched.c:1584 with -fno-inline -fno-dce -fschedule-insns -fselective-scheduling -fno-tree-dce -O1
Summary: ICE in verify_target_availability, at sel-sched.c:1584 with -fno-inline -fno-...
Status: RESOLVED DUPLICATE of bug 64411
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 5.3.0
: P3 normal
Target Milestone: ---
Assignee: Andrey Belevantsev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-18 12:48 UTC by Andrey Tarasevich
Modified: 2016-03-31 14:44 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2016-03-31 00:00:00


Attachments
test case with ICE (190 bytes, text/plain)
2016-03-18 12:48 UTC, Andrey Tarasevich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Tarasevich 2016-03-18 12:48:54 UTC
Created attachment 38016 [details]
test case with ICE

This might be a duplicate of bug 64411

../build/gcc_530_clean_bin/bin/gcc test_case_52485.c -fno-inline -fno-dce -fschedule-insns -fselective-scheduling -fno-tree-dce -O1 -save-temps -v
Using built-in specs.
COLLECT_GCC=../build/gcc_530_clean_bin/bin/gcc
COLLECT_LTO_WRAPPER=/home/tarasevich/build/gcc_530_clean_bin/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../../source/gcc_530/configure --prefix=/home/tarasevich/build/gcc_530_clean_bin/ --enable-languages=c --disable-multilib --disable-bootstrap CC=/home/tarasevich/build/llvm_371_bin/bin/clang CXX=/home/tarasevich/build/llvm_371_bin/bin/clang++
Thread model: posix
gcc version 5.3.0 (GCC) 
COLLECT_GCC_OPTIONS='-fno-inline' '-fno-dce' '-fschedule-insns' '-fselective-scheduling' '-fno-tree-dce' '-O1' '-save-temps' '-v' '-mtune=generic' '-march=x86-64'
 /home/tarasevich/build/gcc_530_clean_bin/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/cc1 -E -quiet -v -imultiarch x86_64-linux-gnu test_case_52485.c -mtune=generic -march=x86-64 -fno-inline -fno-dce -fschedule-insns -fselective-scheduling -fno-tree-dce -O1 -fpch-preprocess -o test_case_52485.i
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/home/tarasevich/build/gcc_530_clean_bin/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/tarasevich/build/gcc_530_clean_bin/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include
 /usr/local/include
 /home/tarasevich/build/gcc_530_clean_bin/include
 /home/tarasevich/build/gcc_530_clean_bin/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/include-fixed
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-fno-inline' '-fno-dce' '-fschedule-insns' '-fselective-scheduling' '-fno-tree-dce' '-O1' '-save-temps' '-v' '-mtune=generic' '-march=x86-64'
 /home/tarasevich/build/gcc_530_clean_bin/libexec/gcc/x86_64-unknown-linux-gnu/5.3.0/cc1 -fpreprocessed test_case_52485.i -quiet -dumpbase test_case_52485.c -mtune=generic -march=x86-64 -auxbase test_case_52485 -O1 -version -fno-inline -fno-dce -fschedule-insns -fselective-scheduling -fno-tree-dce -o test_case_52485.s
GNU C11 (GCC) version 5.3.0 (x86_64-unknown-linux-gnu)
	compiled by GNU C version 4.2.1 Compatible Clang 3.7.1 (tags/RELEASE_371/final 263010), GMP version 5.1.3, MPFR version 3.1.2-p3, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C11 (GCC) version 5.3.0 (x86_64-unknown-linux-gnu)
	compiled by GNU C version 4.2.1 Compatible Clang 3.7.1 (tags/RELEASE_371/final 263010), GMP version 5.1.3, MPFR version 3.1.2-p3, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: c53bb545b4c066cdbf5e42f0b9d9ad8b
test_case_52485.c: In function 't106_1mul':
test_case_52485.c:9:1: internal compiler error: in verify_target_availability, at sel-sched.c:1584
 }
 ^
0x906ac3 verify_target_availability(_expr*, bitmap_head*, reg_rename*)
	../../../source/gcc_530/gcc/sel-sched.c:1581
0x906ac3 find_best_reg_for_expr(_expr*, _list_node*, bool*)
	../../../source/gcc_530/gcc/sel-sched.c:1696
0x906ac3 fill_vec_av_set(_list_node*, _list_node*, _fence*, int*)
	../../../source/gcc_530/gcc/sel-sched.c:3810
0x906ac3 fill_ready_list(_list_node**, _list_node*, _fence*, int*)
	../../../source/gcc_530/gcc/sel-sched.c:4040
0x906ac3 find_best_expr(_list_node**, _list_node*, _fence*, int*)
	../../../source/gcc_530/gcc/sel-sched.c:4403
0x906ac3 fill_insns(_fence*, int, _list_node***)
	../../../source/gcc_530/gcc/sel-sched.c:5570
0x901fae schedule_on_fences(_list_node*, int, _list_node***)
	../../../source/gcc_530/gcc/sel-sched.c:7395
0x901fae sel_sched_region_2(int)
	../../../source/gcc_530/gcc/sel-sched.c:7533
0x8fe717 sel_sched_region_1()
	../../../source/gcc_530/gcc/sel-sched.c:7575
0x8fe717 sel_sched_region(int)
	../../../source/gcc_530/gcc/sel-sched.c:7676
0x8ff976 run_selective_scheduling()
	../../../source/gcc_530/gcc/sel-sched.c:7752
0x8ed24e rest_of_handle_sched()
	../../../source/gcc_530/gcc/sched-rgn.c:3633
0x8ed24e (anonymous namespace)::pass_sched::execute(function*)
	../../../source/gcc_530/gcc/sched-rgn.c:3743
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.
Comment 1 Andrey Belevantsev 2016-03-31 12:34:04 UTC
(In reply to Andrey Tarasevich from comment #0)
> Created attachment 38016 [details]
> test case with ICE
> 
> This might be a duplicate of bug 64411
> 

It is, I have verified that the patch for 64411 fixes this as well.  However, the patch is applied to trunk only for now.  I wasn't going to backport it to gcc-5 because 64411 doesn't have any mentions of the compiler that works.  But for this test my system opensuse gcc works.  Thus it can be classified as a regression, and I would backport it to gcc-5 branch and add also this test case to trunk and gcc 5.
Comment 2 Andrey Belevantsev 2016-03-31 14:37:40 UTC
Author: abel
Date: Thu Mar 31 14:37:08 2016
New Revision: 234627

URL: https://gcc.gnu.org/viewcvs?rev=234627&root=gcc&view=rev
Log:
        PR target/70292
        * gcc.c-torture/pr70292.c: New test.


Added:
    trunk/gcc/testsuite/gcc.dg/pr70292.c
Modified:
    trunk/gcc/testsuite/ChangeLog
Comment 3 Andrey Belevantsev 2016-03-31 14:44:19 UTC
Test committed on trunk.

*** This bug has been marked as a duplicate of bug 64411 ***