public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [gofrtran] Fix PR 16465: accept -ffixed-line-length-72
@ 2004-07-11 13:19 Tobias Schlüter
  2004-07-11 13:34 ` Tobias Schlüter
  2004-07-11 14:49 ` Paul Brook
  0 siblings, 2 replies; 13+ messages in thread
From: Tobias Schlüter @ 2004-07-11 13:19 UTC (permalink / raw)
  To: GCC Fortran mailing list, patch


Trivial fix for that bug.

Built and verified that it works as expected. I didn't commit this as
obvious, because someone might prefer if we allowed arbitrary line
lengths, as in -ffixed-line-length-N, where N is an arbitrary positive
integer. I can't see much value in that, but there might be.

- Tobi

Index: lang.opt
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fortran/lang.opt,v
retrieving revision 1.4
diff -u -p -r1.4 lang.opt
--- lang.opt    22 May 2004 11:03:17 -0000      1.4
+++ lang.opt    11 Jul 2004 12:22:06 -0000
@@ -97,6 +97,10 @@ fimplicit-none
 F95
 Specify that no implicit typing is allowed, unless overridden by
explicit IMPLICIT statements

+ffixed-line-length-72
+F95 RejectNegative
+Use 72 character line width in fixed mode
+
 ffixed-line-length-80
 F95 RejectNegative
 Use 80 character line width in fixed mode
Index: options.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fortran/options.c,v
retrieving revision 1.5
diff -u -p -r1.5 options.c
--- options.c   22 May 2004 11:03:17 -0000      1.5
+++ options.c   11 Jul 2004 12:22:06 -0000
@@ -260,6 +260,10 @@ gfc_handle_option (size_t scode, const c
       gfc_option.flag_repack_arrays = value;
       break;

+    case OPT_ffixed_line_length_72:
+      gfc_option.fixed_line_length = 72;
+      break;
+
     case OPT_ffixed_line_length_80:
       gfc_option.fixed_line_length = 80;
       break;

^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: [gofrtran] Fix PR 16465: accept -ffixed-line-length-72
@ 2004-07-13  8:15 Billinghurst, David (CALCRTS)
  0 siblings, 0 replies; 13+ messages in thread
From: Billinghurst, David (CALCRTS) @ 2004-07-13  8:15 UTC (permalink / raw)
  To: Tobias Schlüter, Toon Moene; +Cc: Paul Brook, fortran, patch

Tobias Schlüter wrote: 
> 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.

Tobi,

I couldn't find a way.  I tried a few fancy ways before I settled on the
very simple tests in g77.dg/ffixed-line-length-*.f.

	David

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2004-07-18 12:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-11 13:19 [gofrtran] Fix PR 16465: accept -ffixed-line-length-72 Tobias Schlüter
2004-07-11 13:34 ` Tobias Schlüter
2004-07-11 14:49 ` Paul Brook
2004-07-11 23:15   ` Tobias Schlüter
2004-07-12 22:49     ` Toon Moene
2004-07-12 23:16       ` Tobias Schlüter
2004-07-12 23:21         ` Steve Kargl
2004-07-13  1:43       ` Tobias Schlüter
2004-07-13  6:41         ` Bud Davis
2004-07-13  8:12           ` Tobias Schlüter
2004-07-13 20:50             ` Tobias Schlüter
2004-07-19  4:21               ` Paul Brook
2004-07-13  8:15 Billinghurst, David (CALCRTS)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).