I just tried to compile lapack version 3.1.1
with the GNU Fortran compiler version 4.3 snapshot 20070914.

The compiler said

/home/dcb/gcc/20070914/results/bin/gfortran -g -O3 -Wall -ftree-vectorize -c
dlarre.f -o dlarre.o
dlarre.f: In function 'dlarre':
dlarre.f: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.

Here is some help from valgrind

==32315== Invalid read of size 4
==32315==    at 0xAB06EA: vect_get_vec_defs_for_stmt_copy (tree.h:210)
==32315==    by 0xAB3CC5: vectorizable_operation (tree-vect-transform.c:3987)
==32315==    by 0xAC058B: vect_transform_stmt (tree-vect-transform.c:6095)
==32315==    by 0xAC1707: vect_transform_loop (tree-vect-transform.c:7334)
==32315==    by 0x80766B: vectorize_loops (tree-vectorizer.c:2507)
==32315==    by 0x64BCC8: execute_one_pass (passes.c:1115)
==32315==    by 0x64BE9F: execute_pass_list (passes.c:1168)
==32315==    by 0x64BEB4: execute_pass_list (passes.c:1169)
==32315==    by 0x64BEB4: execute_pass_list (passes.c:1169)
==32315==    by 0x72480F: tree_rest_of_compilation (tree-optimize.c:404)
==32315==    by 0x893DD3: cgraph_expand_function (cgraphunit.c:1070)
==32315==    by 0x896024: cgraph_optimize (cgraphunit.c:1139)
==32315==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
dlarre.f: In function 'dlarre':
dlarre.f:1: internal compiler error: Segmentation fault

Source attached. Flags -O2 -ftree-vectorize required.


-- 
           Summary: ice for fortran code with -O2 -ftree-vectorize
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: suse-linux-x86_64


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

Reply via email to