This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]