http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46184
Summary: [4.6 Regression] ICE: SIGSEGV in
vectorizable_reduction (tree-vect-loop.c:4067) with -O
-ftree-vectorize -fno-tree-copy-prop -fno-tree-dce
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 22160
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22160
reduced testcase (from gcc.dg/vect/vect-cond-4.c)
valgrind output:
$ gcc -O -ftree-vectorize -fno-tree-copy-prop -fno-tree-dce pr46184.c
==10721== Invalid read of size 2
==10721== at 0x9DC5C2: vectorizable_reduction (tree-vect-loop.c:4067)
==10721== by 0x9D3D1A: vect_analyze_stmt (tree-vect-stmts.c:4661)
==10721== by 0x9DF616: vect_analyze_loop (tree-vect-loop.c:1248)
==10721== by 0x9EC288: vectorize_loops (tree-vectorizer.c:219)
==10721== by 0x797A5E: execute_one_pass (passes.c:1560)
==10721== by 0x797CF4: execute_pass_list (passes.c:1615)
==10721== by 0x797D06: execute_pass_list (passes.c:1616)
==10721== by 0x797D06: execute_pass_list (passes.c:1616)
==10721== by 0x8E4B65: tree_rest_of_compilation (tree-optimize.c:422)
==10721== by 0xAAF281: cgraph_expand_function (cgraphunit.c:1494)
==10721== by 0xAB1849: cgraph_optimize (cgraphunit.c:1553)
==10721== by 0xAB1DA9: cgraph_finalize_compilation_unit (cgraphunit.c:1016)
==10721== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==10721==
pr46184.c: In function 'foo':
pr46184.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:
r165915 - crash
r159696 - crash
r158095 - OK
4.5 r165781 - OK