aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/options.c
diff options
context:
space:
mode:
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>2004-07-18 15:00:34 +0200
committerTobias Schlüter <tobi@gcc.gnu.org>2004-07-18 15:00:34 +0200
commitf56c5d5d5bd85f893847ee74885ac2f17172b918 (patch)
tree24c3eb4bb41b68910dfda108e20201c7d79da360 /gcc/fortran/options.c
parent9cdc381b1ac0289703497f510cdcdb5a08f26ec8 (diff)
downloadgcc-f56c5d5d5bd85f893847ee74885ac2f17172b918.zip
gcc-f56c5d5d5bd85f893847ee74885ac2f17172b918.tar.gz
gcc-f56c5d5d5bd85f893847ee74885ac2f17172b918.tar.bz2
re PR fortran/16465 (parser chokes with ffixed-line-length-7)
PR fortran/16465 * lang.opt (ffixed-line-length-none, ffixed-line-length-): New options. (ffixed-line-length-80, ffixed-line-length-132): Remove. * options.c (gfc_handle_options): Deal with changed options. * scanner.c (load_line): Change second arg to 'char **', allocate if pointing to NULL. Keep track of buffer's length. Adapt buffer size to overlong lines. Pad lines to full length in fixed form. (load_file): Adapt to new interface of load_line. From-SVN: r84891
Diffstat (limited to 'gcc/fortran/options.c')
-rw-r--r--gcc/fortran/options.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
index b0f9a76..c8dc329 100644
--- a/gcc/fortran/options.c
+++ b/gcc/fortran/options.c
@@ -260,12 +260,14 @@ gfc_handle_option (size_t scode, const char *arg, int value)
gfc_option.flag_repack_arrays = value;
break;
- case OPT_ffixed_line_length_80:
- gfc_option.fixed_line_length = 80;
+ case OPT_ffixed_line_length_none:
+ gfc_option.fixed_line_length = 0;
break;
- case OPT_ffixed_line_length_132:
- gfc_option.fixed_line_length = 132;
+ case OPT_ffixed_line_length_:
+ if (value != 0 && value < 7)
+ gfc_fatal_error ("Fixed line length must be at least seven.");
+ gfc_option.fixed_line_length = value;
break;
case OPT_fmax_identifier_length_: