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/24887] New: ICE in fold-const.c


To reproduce:

Compile the three files with:
f951 timeinterval.f90
f951 time.f90
f951 fold.f90

clockadvance
fold_convert.f90:13: internal compiler error: in fold_convert, at fold.c:2028
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Reproduced with the following gccs: gcc -v:

Using built-in specs.
Target: s390x-ibm-linux
Configured with: /build/gcc-4.1/configure --prefix=/build/gcc-4.1-64bit-install
--enable-shared --with-system-zlib --enable-threads=posix --enable-__cxa_atexit
--program-suffix=-4.1
Thread model: posix
gcc version 4.1.0 20051115 (experimental)

Using built-in specs.
Target: s390x-redhat-linux
Configured with: /build2/gcc-4.0/configure
--prefix=/build2/gcc-4.0-64bit-install --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-languages=c,c++,objc,java,f95,ada
--host=s390x-redhat-linux --program-suffix=-4.0
Thread model: posix
gcc version 4.0.3 20051017 (prerelease)

Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt
--enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm
--enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr
--disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.2 (Debian 4.0.2-2)


Debug output produced on s390x:

Breakpoint 1, fold_convert (type=0x20000286160, arg=0x200002071e0)
    at /build/gcc-4.1/gcc/fold.c:2028
2028          gcc_unreachable ();
(gdb) p debug_generic_expr(type)
struct timetype
$1 = void
(gdb) p debug_generic_expr(arg)
timeinc (&clockD.547->currD.543, &clockD.547->stepD.542)
$2 = void
(gdb) bt
#0  fold_convert (type=0x20000286160, arg=0x200002071e0) at
/build/gcc-4.1/gcc/fold.c:2028
#1  0x00000000800726c4 in gfc_trans_scalar_assign (lse=0x3ffffc30fc8,
rse=0x3ffffc30f78, type=Variable "type" is not available.
)
    at /build/gcc-4.1/gcc/fortran/trans-expr.c:2579
#2  0x00000000800770a4 in gfc_trans_assignment (expr1=0x80642e30,
expr2=0x806430d0)
    at /build/gcc-4.1/gcc/fortran/trans-expr.c:2761
#3  0x0000000080060b90 in gfc_trans_code (code=0x80641c90)
    at /build/gcc-4.1/gcc/fortran/trans.c:493
#4  0x0000000080071736 in gfc_generate_function_code (ns=0x80641430)
    at /build/gcc-4.1/gcc/fortran/trans-decl.c:2621
#5  0x0000000080060118 in gfc_generate_module_code (ns=0x80608520)
    at /build/gcc-4.1/gcc/fortran/trans.c:688
#6  0x0000000080042796 in gfc_parse_file () at
/build/gcc-4.1/gcc/fortran/parse.c:2675
#7  0x000000008005fa86 in gfc_be_parse_file (set_yydebug=Variable "set_yydebug"
is not available.
)
    at /build/gcc-4.1/gcc/fortran/f95-lang.c:286
#8  0x00000000802bf740 in toplev_main (argc=dwarf2_read_address: Corrupted
DWARF expression.
) at /build/gcc-4.1/gcc/toplev.c:990
#9  0x00000200000951d2 in __libc_start_main () from /lib64/libc.so.6
#10 0x0000000080004b7a in _start ()


-- 
           Summary: ICE in fold-const.c
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: krebbel at gcc dot gnu dot org
 GCC build triplet: i486-linux-gnu, s390x-ibm-linux
  GCC host triplet: i486-linux-gnu, s390x-ibm-linux
GCC target triplet: i486-linux-gnu, s390x-ibm-linux


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


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