This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Problem with large array
- To: egcs-bugs at cygnus dot com
- Subject: Problem with large array
- From: Geoff Keating <geoffk at ozemail dot com dot au>
- Date: Thu, 16 Jul 1998 14:26:50 +1000
The following program:
subroutine foo()
double precision xr(2**26)
call bar(xr,w)
end subroutine
when compiled with:
g77 -v -W -Wall -O2 tmp.f -c
produces the following output (word-wrapped for clarity):
Reading specs from
/usr/lib/gcc-lib/powerpc-unknown-linux-gnu/egcs-2.90.27/specs
gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)
/usr/lib/gcc-lib/powerpc-unknown-linux-gnu/egcs-2.90.27/f771 tmp.f
-fset-g77-defaults -quiet -dumpbase tmp.f -O2 -W -Wall -version
-fversion -o /tmp/ccCnNnBd.s
GNU F77 version egcs-2.90.27 980315 (egcs-1.0.2 release)
(powerpc-unknown-linux-gnu) compiled by GNU C version egcs-2.90.27
980315 (egcs-1.0.2 release).
GNU Fortran Front End version 0.5.22-19970929
f/com.c:8154: failed assertion `TREE_INT_CST_LOW (size_tree) ==
ffestorag_size (st)'
g77: Internal compiler error: program f771 got fatal signal 6
Admittedly, an array of 512Mb is pretty large, but not unreasonably
so. The crash does not happen if you only ask for a 256Mb array.
--
Geoffrey Keating <geoffk@ozemail.com.au>