https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85342
Bug ID: 85342
Summary: [8 Regression] ICE: SIGSEGV in
copyprop_hardreg_forward_1 (regcprop.c:995) with -O2
-mavx512vl
Product: gcc
Version: 8.0.1
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 43908
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43908&action=edit
reduced testcase
Compiler output:
$ x86_64-pc-linux-gnu-gcc -O2 -mavx512vl testcase.c -wrapper valgrind,-q
==28884== Invalid read of size 8
==28884== at 0xCA0B0F: copyprop_hardreg_forward_1(basic_block_def*,
value_data*) [clone .isra.23] (regcprop.c:995)
==28884== by 0xCA19B2: (anonymous
namespace)::pass_cprop_hardreg::execute(function*) (regcprop.c:1303)
==28884== by 0xC3A783: execute_one_pass(opt_pass*) (passes.c:2497)
==28884== by 0xC3B0B7: execute_pass_list_1(opt_pass*) (passes.c:2586)
==28884== by 0xC3B0C9: execute_pass_list_1(opt_pass*) (passes.c:2587)
==28884== by 0xC3B0C9: execute_pass_list_1(opt_pass*) (passes.c:2587)
==28884== by 0xC3B114: execute_pass_list(function*, opt_pass*)
(passes.c:2597)
==28884== by 0x89CCDD: cgraph_node::expand() (cgraphunit.c:2139)
==28884== by 0x89E2EA: expand_all_functions (cgraphunit.c:2275)
==28884== by 0x89E2EA: symbol_table::compile() [clone .part.58]
(cgraphunit.c:2624)
==28884== by 0x8A0BE7: compile (cgraphunit.c:2683)
==28884== by 0x8A0BE7: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2717)
==28884== by 0xD67461: compile_file() (toplev.c:480)
==28884== by 0x6CEFC4: do_compile (toplev.c:2132)
==28884== by 0x6CEFC4: toplev::main(int, char**) (toplev.c:2267)
==28884== Address 0xabababababababab is not stack'd, malloc'd or (recently)
free'd
==28884==
during RTL pass: cprop_hardreg
testcase.c: In function 'foo':
testcase.c:26:1: internal compiler error: Segmentation fault
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-259308-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/8.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--disable-bootstrap --with-cloog --with-ppl --with-isl
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-259308-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
gcc version 8.0.1 20180411 (experimental) (GCC)