This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: g77 question
- To: Steve <edwardss at whl dot co dot uk>
- Subject: Re: g77 question
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Tue, 07 Aug 2001 23:34:09 +0200
- CC: gcc-help at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <3B700F47.6756808D@gkn-whl.co.uk>
Steve wrote:
> Sorry to interrupt the highly technical c/c++ questions, but when using
> g77 it appears that -pipe and -xf77-cpp-input will not work together
> (source code is just redirected to stdout) Is this expected behaviour?
Yep, a regression w.r.t. gcc/g77-2.95. I'll file a bug report.
> One other question. Frre format writes to Fortran unit numbers appear to
> be automatically wrapping text at some predefined column number (about
> 80 I think). Is this standard behaviour (no other Fortran compiler I've
> used exhibits this behaviour) and is there a way of stopping it?
You'll probably mean list directed output, i.e., something along the
lines of:
DIMENSION A(10)
DATA A /10*1.1/
PRINT*, A
END
It is Standard behaviour, because the Standard leaves the choice of the
actual format used to print the contents of A to the processor
(compiler).
If you want a particular format, you have to supply one (e.g.,
'(10F7.2)').
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
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)