g77 -fsubscript-check -> "Internal compiler error"

Tim Schmielau tim@physik3.uni-rostock.de
Wed May 12 12:44:00 GMT 1999


The following FORTRAN code fragment results in an internal compiler error
when compiled with -fsubscript-check on alphaev6-dec-osf4.0e :

      subroutine bug
      implicit none
      integer i
      real a, b(0:10)
      i=2
      a=b(i-1)
      return
      end

Output from the compiler is as follows:

> g77 -fsubscript-check -c bug.f
bug.f: In subroutine `bug':
bug.f:6: Internal compiler error in `copy_to_mode_reg', at explow.c:669
Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
See <URL: http://egcs.cygnus.com/faq.html#bugreport > for details.

> g77 --verbose
g77 version egcs-2.93.21 19990502 (gcc2 ss-980929 experimental) (from
FSF-g77 version 0.5.24-19990425)
Driving: g77 -v -c -xf77-version /dev/null -xnone
Reading specs from
/usr/local/egcs-19990502/lib/gcc-lib/alphaev6-dec-osf4.0e/egcs-2.93.21/specs
gcc version egcs-2.93.21 19990502 (gcc2 ss-980929 experimental)

/usr/local/egcs-19990502/lib/gcc-lib/alphaev6-dec-osf4.0e/egcs-2.93.21/cpp
-lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=93 -D__unix__ -D__osf__
-D_LONGLONG -D__SYSTYPE_BSD__ -D_SYSTYPE_BSD -D__unix -D__SYSTYPE_BSD
-Asystem(unix) -Asystem(xpg4) -D_LANGUAGE_FORTRAN -traditional
-D__LANGUAGE_C__ -D__LANGUAGE_C -DLANGUAGE_C -Acpu(alpha) -Amachine(alpha)
-D__alpha -D__alpha__ -D__alpha_ev6__ -Acpu(ev6) -D__alpha_bwx__
-Acpu(bwx) -D__alpha_max__ -Acpu(max) -D__alpha_cix__ -Acpu(cix) /dev/null
/dev/null
GNU CPP version egcs-2.93.21 19990502 (gcc2 ss-980929 experimental)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include

/usr/local/egcs-19990502/lib/gcc-lib/alphaev6-dec-osf4.0e/egcs-2.93.21/../../../../alphaev6-dec-osf4.0e/include

/usr/local/egcs-19990502/lib/gcc-lib/alphaev6-dec-osf4.0e/egcs-2.93.21/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:

/usr/local/egcs-19990502/lib/gcc-lib/alphaev6-dec-osf4.0e/egcs-2.93.21/../../../../include/g++-2
End of omitted list.

/usr/local/egcs-19990502/lib/gcc-lib/alphaev6-dec-osf4.0e/egcs-2.93.21/f771
-fnull-version -quiet -dumpbase g77-version.f -version -fversion -o
/tmp/ccIydaaa.s /dev/null
GNU F77 version egcs-2.93.21 19990502 (gcc2 ss-980929 experimental)
(alphaev6-dec-osf4.0e) compiled by GNU C version egcs-2.93.21 19990502
(gcc2 ss-980929 experimental).
GNU Fortran Front End version 0.5.24-19990425
 as -g -nocpp -O0 -o /tmp/ccgXgaaa.o /tmp/ccIydaaa.s

/usr/local/egcs-19990502/lib/gcc-lib/alphaev6-dec-osf4.0e/egcs-2.93.21/mips-tfile
-v -o null.o /tmp/ccIydaaa.s
mips-tfile version egcs-2.93.21 19990502 (gcc2 ss-980929 experimental)
mips-tfile:null.o: No such file or directory


Tim Schmielau (tim@physik3.uni-rostock.de)



More information about the Gcc-bugs mailing list