This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/45948] New: ICE: SIGSEGV in find_uses_to_rename_use (tree-ssa-loop-manip.c:1242) with -O2 -ftree-loop-distribution
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 8 Oct 2010 22:33:06 +0000
- Subject: [Bug tree-optimization/45948] New: ICE: SIGSEGV in find_uses_to_rename_use (tree-ssa-loop-manip.c:1242) with -O2 -ftree-loop-distribution
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45948
Summary: ICE: SIGSEGV in find_uses_to_rename_use
(tree-ssa-loop-manip.c:1242) with -O2
-ftree-loop-distribution
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
Created attachment 22003
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22003
reduced testcase
Command line:
$ gcc -O2 -ftree-loop-distribution pr45948.c
Related valgrind output:
==6585== Invalid read of size 8
==6585== at 0x97C679: find_uses_to_rename_use (tree-ssa-loop-manip.c:1242)
==6585== by 0x97C94F: find_uses_to_rename_bb (tree-ssa-loop-manip.c:284)
==6585== by 0x97CFED: rewrite_into_loop_closed_ssa
(tree-ssa-loop-manip.c:331)
==6585== by 0x8F2CF2: distribute_loop (tree-loop-distribution.c:1087)
==6585== by 0x8F466C: tree_loop_distribution (tree-loop-distribution.c:1208)
==6585== by 0x7BF35E: execute_one_pass (passes.c:1562)
==6585== by 0x7BF5F4: execute_pass_list (passes.c:1617)
==6585== by 0x7BF606: execute_pass_list (passes.c:1618)
==6585== by 0x7BF606: execute_pass_list (passes.c:1618)
==6585== by 0x902275: tree_rest_of_compilation (tree-optimize.c:419)
==6585== by 0xAC4991: cgraph_expand_function (cgraphunit.c:1498)
==6585== by 0xAC6F29: cgraph_optimize (cgraphunit.c:1557)
==6585== Address 0x10 is not stack'd, malloc'd or (recently) free'd
==6585==
pr45948.c: In function 'foo':
pr45948.c:4:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Tested revisions:
r165152 - crash