This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
RE: [gofrtran] Fix PR 16465: accept -ffixed-line-length-72
- From: "Billinghurst, David (CALCRTS)" <david dot billinghurst at comalco dot riotinto dot com dot au>
- To: <fortran at gcc dot gnu dot org>
- Date: Tue, 13 Jul 2004 09:22:31 +1000
- Subject: RE: [gofrtran] Fix PR 16465: accept -ffixed-line-length-72
fortran-owner@gcc.gnu.org wrote:
> Toon Moene wrote:
>>
>> Not so fast - this is fixed form code, so every line is 72 characters
>> long. g77 was quite innovative in treating this right - IIRC, DEC
>> changed its compiler to match g77's behaviour.
>>
>
> I've updated my patch. But before I post it, I want to know: Is
> support for arbitrary line lengths with --fixed-line-length-none also
> a must, or is the builtin maximum of 132 ok? I just don't want to do
> that work unnecessarily.
>
> For writing a testcase, I'm interested in this: is there a way to
> compile and run a testcase with several different options, and expect
> different output each time, i.e.
> character(400) :: t
> t=
> 1"
> 2a"
> print *, len_trim(t)+6
> end
> has this behavior:
> option --ffixed-line-length-72 -> prints: 72
> option --ffixed-line-length-132 -> prints: 132
> option --ffixed-line-length-none -> prints: 7
> etc.
>
> - Tobi
I think that arbitrary limits are against the GNU coding standards.
"Avoid arbitrary limits on the length or number of any data structure,
including file names, lines, files, and symbols, by allocating all data
structures dynamically."
from http://www.gnu.org/prep/standards_13.html#IDX7
That said, 132 characters suffice for me.
David