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

            Bug ID: 58683
           Summary: Internal compiler error: Segmentation fault compiling
                    Cilk Plus code with -ftree-vectorizer-verbose=1
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: neboat16 at gmail dot com

Created attachment 30977
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30977&action=edit
Preprocessed file for Cilk Plus matrix multiplication code.

When compiling some matrix-multiplication Cilk Plus code using the cilkplus
branch of GCC (checked out of the git repository on 2013-10-09), I receive the
following internal compiler error.

$ gcc -O3 -ffast-math -std=c99 -W -Wall -Werror -fcilkplus   
mm_dac_coarsen_transpose.c  -lcilkrts -ldl -o mm_dac_coarsen_transpose
-ftree-vectorizer-verbose=1
mm_dac_coarsen_transpose.c: In function ‘mmbase’:
mm_dac_coarsen_transpose.c:27:6: internal compiler error: Segmentation fault
 void mmbase (double *restrict C, double *restrict A, double *restrict B) {
      ^
0x915bbf crash_signal
    ../../gcc-src/gcc/toplev.c:334
0xacc9a6 vect_analyze_scalar_cycles_1
    ../../gcc-src/gcc/tree-vect-loop.c:762
0xacf68d vect_analyze_scalar_cycles
    ../../gcc-src/gcc/tree-vect-loop.c:855
0xacf68d vect_analyze_loop_2
    ../../gcc-src/gcc/tree-vect-loop.c:1848
0xacf68d vect_analyze_loop(loop*)
    ../../gcc-src/gcc/tree-vect-loop.c:2006
0xae43dc vectorize_loops()
    ../../gcc-src/gcc/tree-vectorizer.c:114
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.

This compiler error does not occur if I exclude "-ftree-vectorizer-verbose=1"
from the command line.

Attached is the preprocessed file mm_dac_coarsen_transpose.i.  Below is some
system information about GCC.

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/neboat/bin/gcc/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-src/configure --prefix=/home/neboat/bin/gcc-obj/../gcc
--enable-languages=c,c++ --disable-multilib
Thread model: posix
gcc version 4.9.0 20130520 (experimental) (GCC)

Reply via email to