http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46663

           Summary: ICE: SIGSEGV in vect_recog_pow_pattern (gimple.h:2055)
                    with -O -fexceptions -ftree-vectorize
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: zso...@seznam.cz
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


Created attachment 22533
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22533
reduced testcase

Compiler output:
$ gcc -O -fexceptions -ftree-vectorize pr46663.c
==14635== Invalid read of size 2
==14635==    at 0x1032863: vect_recog_pow_pattern (gimple.h:2055)
==14635==    by 0x1033D35: vect_pattern_recog (tree-vect-patterns.c:683)
==14635==    by 0xA1D8B7: vect_analyze_loop (tree-vect-loop.c:1406)
==14635==    by 0xA2AE58: vectorize_loops (tree-vectorizer.c:199)
==14635==    by 0x7EB7FE: execute_one_pass (passes.c:1564)
==14635==    by 0x7EBAC4: execute_pass_list (passes.c:1619)
==14635==    by 0x7EBAD6: execute_pass_list (passes.c:1620)
==14635==    by 0x7EBAD6: execute_pass_list (passes.c:1620)
==14635==    by 0x92BDB5: tree_rest_of_compilation (tree-optimize.c:422)
==14635==    by 0xAEFF11: cgraph_expand_function (cgraphunit.c:1494)
==14635==    by 0xAF24E9: cgraph_optimize (cgraphunit.c:1553)
==14635==    by 0xAF2A59: cgraph_finalize_compilation_unit (cgraphunit.c:1017)
==14635==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==14635== 
pr46663.c: In function 'foo':
pr46663.c:3:5: 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:
r167127 - crash
4.5.1, 4.4.5, 4.3.5, 4.2.4, 4.1.2, 4.0.4 - crash
3.4.6, 3.3.6 - don't know -ftree-vectorize

Reply via email to