This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] pr 21302 Max line length in free form mode
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Bernhard Fischer <rep dot nop at aon dot at>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Date: Mon, 8 Aug 2005 14:14:42 -0700
- Subject: Re: [patch] pr 21302 Max line length in free form mode
- References: <20050808072307.GA21568@aon.at>
On Mon, Aug 08, 2005 at 09:23:07AM +0200, Bernhard Fischer wrote:
> /* Determine the maximum allowed line length. */
> - if (gfc_current_form == FORM_FREE)
> - maxlen = GFC_MAX_LINE;
> - else
> + if (gfc_current_form == FORM_FREE) {
> + if (gfc_option.fixed_line_length == 72) /* default */
> + maxlen = GFC_MAX_LINE;
> + else
> + maxlen = gfc_option.fixed_line_length;
> + } else
> maxlen = gfc_option.fixed_line_length;
Unless I misunderstand the above, the following
gfortran -ffixed_line_length=72 test.f90
will use GFC_MAX_LINE, which is 132 (not the requested
length of 72).
--
Steve