This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/13955] New: [gfortran] LAPACK file causes ICE (zhbgst.f)


compiling zhbgst.f in the LAPACK distribution causes an ICE.

This happens with -O2, which is the default for LAPACK but not for -O0.


Below is the backtrace:

(gdb) set args -O2 zhbgst.f
(gdb) run
Starting program: /home/bdavis/sw/gfortran/sbox31dec/bin/gcc/f951 -O2 zhbgst.f
 zhbgst
 {GC 5368k -> 2194k} {GC 5542k -> 2078k} {GC 5326k -> 2205k}
Program received signal SIGSEGV, Segmentation fault.
0x0811bf36 in rtx_equal_for_memref_p (x=0xbed78798, y=0xbed7878c) at
../../gcc/gcc/alias.c:1208
1208          switch (fmt[i])
(gdb) bt
#0  0x0811bf36 in rtx_equal_for_memref_p (x=0xbed78798, y=0xbed7878c) at
../../gcc/gcc/alias.c:1208
#1  0x0811cb00 in memrefs_conflict_p (xsize=8, x=0xbeb079b4, ysize=8,
y=0xbeb079a8, c=-8) at ../../gcc/gcc/alias.c:1620
#2  0x08120c23 in true_dependence (mem=0xbebaf7c8, mem_mode=DFmode,
x=0xbebaf618, varies=0x78) at ../../gcc/gcc/alias.c:2126
#3  0x082bc681 in loop_invariant_p (loop=0x8c2fa30, x=0xbebaf618) at
../../gcc/gcc/loop.c:3370
#4  0x082c7a52 in scan_loop (loop=0x8c2fa30, flags=8) at ../../gcc/gcc/loop.c:882
#5  0x082ca5dd in loop_optimize (f=0xbf1e1f00, dumpfile=0x78, flags=8) at
../../gcc/gcc/loop.c:539
#6  0x0833e7e2 in rest_of_handle_loop_optimize (decl=0x0, insns=0xbf1e1f00) at
../../gcc/gcc/toplev.c:3046
#7  0x0833eebd in rest_of_compilation (decl=0xbf2d2570) at
../../gcc/gcc/toplev.c:3359
#8  0x080c04b5 in tree_rest_of_compilation (fndecl=0xbf2d2570, nested_p=false)
at ../../gcc/gcc/tree-optimize.c:568
#9  0x08087b61 in expand_function_body (fndecl=0xbf2d2570, nested=0) at
../../gcc/gcc/fortran/f95-lang.c:205
#10 0x0808ff7c in gfc_generate_function_code (ns=0xbf34a5e8) at
../../gcc/gcc/fortran/trans-decl.c:1945
#11 0x0808bc83 in gfc_generate_code (ns=0x8a98cc8) at
../../gcc/gcc/fortran/trans.c:630
#12 0x080726dc in gfc_parse_file () at ../../gcc/gcc/fortran/parse.c:2485
#13 0x08088d66 in gfc_be_parse_file (set_yydebug=0) at
../../gcc/gcc/fortran/f95-lang.c:284
#14 0x0834144d in toplev_main (argc=120, argv=0x8a76c89) at
../../gcc/gcc/toplev.c:1852
#15 0x00ad6750 in __libc_start_main () from /lib/tls/libc.so.6
#16 0x0804acc1 in _start ()
(gdb)

-- 
           Summary: [gfortran] LAPACK file causes ICE (zhbgst.f)
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bdavis9659 at comcast dot net
                CC: gcc-bugs at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]