This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Fortran 90
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: "Prof. M.B. Patil" <mbpatil at ee dot iitb dot ac dot in>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 01 Oct 2003 00:32:35 +0200
- Subject: Re: Fortran 90
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <Pine.GSO.4.44.0309300801440.1939-100000@bhairav.ee.iitb.ac.in>
Prof. M.B. Patil wrote:
g77 provides an array bounds check compiler option (-f-bounds-check).
However, this does not work with the f77 code obtained by translating
an f90 program with VAST90. (It catches every allocatable array!)
I've never used VAST90 myself, so I have to be guessing here, but it
could well be that in the translation of Fortran 90 -> Fortran 77 VAST90
relies on tricks that violate array bounds.
As there is no equivalent of allocatable arrays in Fortran 77, it
probably uses a common block to "allocate" them and use a bogus size in
most instances (and having a really big common block in one place in the
program).
As I said, just guessing.
Hope this helps,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc-g95.sourceforge.net/ (under construction)