[Bug rtl-optimization/60901] New: [4.8/4.9/4.10 Regression] ICE: SIGSEGV in add_to_deps_list with -fsel-sched-pipelining-outer-loops
zsojka at seznam dot cz
gcc-bugzilla@gcc.gnu.org
Sun Apr 20 08:36:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60901
Bug ID: 60901
Summary: [4.8/4.9/4.10 Regression] ICE: SIGSEGV in
add_to_deps_list with
-fsel-sched-pipelining-outer-loops
Product: gcc
Version: 4.10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
Created attachment 32635
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32635&action=edit
reduced testcase
Compiler output (under valgrind):
$ gcc -O -fselective-scheduling -fschedule-insns -fsel-sched-pipelining
-fsel-sched-pipelining-outer-loops -fno-tree-dominator-opts testcase.c
==23085== Invalid read of size 8
==23085== at 0x1394529: add_to_deps_list(_dep_link*, _deps_list*)
(sched-deps.c:247)
==23085== by 0x13A1493: sd_add_dep(_dep*, bool) (sched-deps.c:1344)
==23085== by 0x13A1B85: add_or_update_dep_1(_dep*, bool, rtx_def*, rtx_def*)
(sched-deps.c:1286)
==23085== by 0x13A212C: haifa_note_dep(rtx_def*, unsigned int)
(sched-deps.c:1866)
==23085== by 0x1394CB2: add_dependence_1(rtx_def*, rtx_def*, reg_note)
(sched-deps.c:1901)
==23085== by 0x13992C3: add_dependence(rtx_def*, rtx_def*, reg_note)
(sched-deps.c:1557)
==23085== by 0xDE227A: ix86_dependencies_evaluation_hook(rtx_def*, rtx_def*)
(i386.c:26191)
==23085== by 0xADC311: sched_rgn_compute_dependencies(int)
(sched-rgn.c:2746)
==23085== by 0xB0D4E3: sel_sched_region(int) (sel-sched.c:6933)
==23085== by 0xB0F329: run_selective_scheduling() (sel-sched.c:7798)
==23085== by 0xADF44D: (anonymous namespace)::pass_sched::execute(function*)
(sched-rgn.c:3618)
==23085== by 0xA484E0: execute_one_pass(opt_pass*) (passes.c:2159)
==23085== by 0xA48785: execute_pass_list(opt_pass*) (passes.c:2212)
==23085== by 0xA48797: execute_pass_list(opt_pass*) (passes.c:2213)
==23085== by 0x785208: expand_function(cgraph_node*) (cgraphunit.c:1774)
==23085== by 0x7871EB: compile() (cgraphunit.c:1908)
==23085== by 0x787954: finalize_compilation_unit() (cgraphunit.c:2329)
==23085== by 0x63ADA3: c_write_global_declarations() (c-decl.c:10401)
==23085== by 0xB3BF2C: compile_file() (toplev.c:562)
==23085== by 0xB3DEFF: toplev_main(int, char**) (toplev.c:1914)
==23085== by 0x5A46BF4: (below main) (in /lib64/libc-2.17.so)
==23085== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23085==
Tested revisions:
r209530 - ICE
4.9 r209346 - ICE
4.8 r209342 - ICE
4.7 r209345 - OK
More information about the Gcc-bugs
mailing list