mips.h (set_volatile): Delete.
[official-gcc.git] / gcc / fortran / options.c
blobb2c17dca14e95d7a1468ab6c634a0c66e0d8e2c9
1 /* Parse and display command line options.
2 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
3 Free Software Foundation, Inc.
4 Contributed by Andy Vaught
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 3, or (at your option) any later
11 version.
13 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
22 #include "config.h"
23 #include "system.h"
24 #include "coretypes.h"
25 #include "tree.h"
26 #include "flags.h"
27 #include "intl.h"
28 #include "opts.h"
29 #include "options.h"
30 #include "params.h"
31 #include "tree-inline.h"
32 #include "gfortran.h"
33 #include "target.h"
35 gfc_option_t gfc_option;
38 /* Set flags that control warnings and errors for different
39 Fortran standards to their default values. */
41 static void
42 set_default_std_flags (void)
44 gfc_option.allow_std = GFC_STD_F95_OBS | GFC_STD_F95_DEL
45 | GFC_STD_F2003 | GFC_STD_F95 | GFC_STD_F77 | GFC_STD_GNU
46 | GFC_STD_LEGACY;
47 gfc_option.warn_std = GFC_STD_F95_DEL | GFC_STD_LEGACY;
50 /* Get ready for options handling. */
52 unsigned int
53 gfc_init_options (unsigned int argc ATTRIBUTE_UNUSED,
54 const char **argv ATTRIBUTE_UNUSED)
56 gfc_source_file = NULL;
57 gfc_option.module_dir = NULL;
58 gfc_option.source_form = FORM_UNKNOWN;
59 gfc_option.fixed_line_length = 72;
60 gfc_option.free_line_length = 132;
61 gfc_option.max_continue_fixed = 19;
62 gfc_option.max_continue_free = 39;
63 gfc_option.max_identifier_length = GFC_MAX_SYMBOL_LEN;
64 gfc_option.max_subrecord_length = 0;
65 gfc_option.convert = GFC_CONVERT_NATIVE;
66 gfc_option.record_marker = 0;
67 gfc_option.verbose = 0;
69 gfc_option.warn_aliasing = 0;
70 gfc_option.warn_ampersand = 0;
71 gfc_option.warn_character_truncation = 0;
72 gfc_option.warn_conversion = 0;
73 gfc_option.warn_implicit_interface = 0;
74 gfc_option.warn_line_truncation = 0;
75 gfc_option.warn_surprising = 0;
76 gfc_option.warn_tabs = 1;
77 gfc_option.warn_underflow = 1;
78 gfc_option.max_errors = 25;
80 gfc_option.flag_all_intrinsics = 0;
81 gfc_option.flag_default_double = 0;
82 gfc_option.flag_default_integer = 0;
83 gfc_option.flag_default_real = 0;
84 gfc_option.flag_dollar_ok = 0;
85 gfc_option.flag_underscoring = 1;
86 gfc_option.flag_f2c = 0;
87 gfc_option.flag_second_underscore = -1;
88 gfc_option.flag_implicit_none = 0;
90 /* Default value of flag_max_stack_var_size is set in gfc_post_options. */
91 gfc_option.flag_max_stack_var_size = -2;
93 gfc_option.flag_range_check = 1;
94 gfc_option.flag_pack_derived = 0;
95 gfc_option.flag_repack_arrays = 0;
96 gfc_option.flag_preprocessed = 0;
97 gfc_option.flag_automatic = 1;
98 gfc_option.flag_backslash = 1;
99 gfc_option.flag_module_private = 0;
100 gfc_option.flag_backtrace = 0;
101 gfc_option.flag_allow_leading_underscore = 0;
102 gfc_option.flag_dump_core = 0;
103 gfc_option.flag_external_blas = 0;
104 gfc_option.blas_matmul_limit = 30;
105 gfc_option.flag_cray_pointer = 0;
106 gfc_option.flag_d_lines = -1;
107 gfc_option.flag_openmp = 0;
108 gfc_option.flag_sign_zero = 1;
109 gfc_option.flag_recursive = 0;
110 gfc_option.flag_init_integer = GFC_INIT_INTEGER_OFF;
111 gfc_option.flag_init_integer_value = 0;
112 gfc_option.flag_init_real = GFC_INIT_REAL_OFF;
113 gfc_option.flag_init_logical = GFC_INIT_LOGICAL_OFF;
114 gfc_option.flag_init_character = GFC_INIT_CHARACTER_OFF;
115 gfc_option.flag_init_character_value = (char)0;
117 gfc_option.fpe = 0;
119 /* Argument pointers cannot point to anything but their argument. */
120 flag_argument_noalias = 3;
122 flag_errno_math = 0;
124 set_default_std_flags ();
126 gfc_option.warn_nonstd_intrinsics = 0;
128 /* -fshort-enums can be default on some targets. */
129 gfc_option.fshort_enums = targetm.default_short_enums ();
131 return CL_Fortran;
135 /* Determine the source form from the filename extension. We assume
136 case insensitivity. */
138 static gfc_source_form
139 form_from_filename (const char *filename)
141 static const struct
143 const char *extension;
144 gfc_source_form form;
146 exttype[] =
149 ".f90", FORM_FREE}
152 ".f95", FORM_FREE}
155 ".f03", FORM_FREE}
158 ".f", FORM_FIXED}
161 ".for", FORM_FIXED}
164 "", FORM_UNKNOWN}
165 }; /* sentinel value */
167 gfc_source_form f_form;
168 const char *fileext;
169 int i;
171 /* Find end of file name. Note, filename is either a NULL pointer or
172 a NUL terminated string. */
173 i = 0;
174 while (filename[i] != '\0')
175 i++;
177 /* Find last period. */
178 while (i >= 0 && (filename[i] != '.'))
179 i--;
181 /* Did we see a file extension? */
182 if (i < 0)
183 return FORM_UNKNOWN; /* Nope */
185 /* Get file extension and compare it to others. */
186 fileext = &(filename[i]);
188 i = -1;
189 f_form = FORM_UNKNOWN;
192 i++;
193 if (strcasecmp (fileext, exttype[i].extension) == 0)
195 f_form = exttype[i].form;
196 break;
199 while (exttype[i].form != FORM_UNKNOWN);
201 return f_form;
205 /* Finalize commandline options. */
207 bool
208 gfc_post_options (const char **pfilename)
210 const char *filename = *pfilename, *canon_source_file = NULL;
211 char *source_path;
212 int i;
214 /* Issue an error if -fwhole-program was used. */
215 if (flag_whole_program)
216 gfc_fatal_error ("Option -fwhole-program is not supported for Fortran");
218 /* Verify the input file name. */
219 if (!filename || strcmp (filename, "-") == 0)
221 filename = "";
224 if (gfc_option.flag_preprocessed)
226 /* For preprocessed files, if the first tokens are of the form # NUM.
227 handle the directives so we know the original file name. */
228 gfc_source_file = gfc_read_orig_filename (filename, &canon_source_file);
229 if (gfc_source_file == NULL)
230 gfc_source_file = filename;
231 else
232 *pfilename = gfc_source_file;
234 else
235 gfc_source_file = filename;
237 if (canon_source_file == NULL)
238 canon_source_file = gfc_source_file;
240 /* Adds the path where the source file is to the list of include files. */
242 i = strlen (canon_source_file);
243 while (i > 0 && !IS_DIR_SEPARATOR (canon_source_file[i]))
244 i--;
246 if (i != 0)
248 source_path = alloca (i + 1);
249 memcpy (source_path, canon_source_file, i);
250 source_path[i] = 0;
251 gfc_add_include_path (source_path, true);
253 else
254 gfc_add_include_path (".", true);
256 if (canon_source_file != gfc_source_file)
257 gfc_free (CONST_CAST (char *, canon_source_file));
259 /* Decide which form the file will be read in as. */
261 if (gfc_option.source_form != FORM_UNKNOWN)
262 gfc_current_form = gfc_option.source_form;
263 else
265 gfc_current_form = form_from_filename (filename);
267 if (gfc_current_form == FORM_UNKNOWN)
269 gfc_current_form = FORM_FREE;
270 gfc_warning_now ("Reading file '%s' as free form",
271 (filename[0] == '\0') ? "<stdin>" : filename);
275 /* If the user specified -fd-lines-as-{code|comments} verify that we're
276 in fixed form. */
277 if (gfc_current_form == FORM_FREE)
279 if (gfc_option.flag_d_lines == 0)
280 gfc_warning_now ("'-fd-lines-as-comments' has no effect "
281 "in free form");
282 else if (gfc_option.flag_d_lines == 1)
283 gfc_warning_now ("'-fd-lines-as-code' has no effect in free form");
286 flag_inline_trees = 1;
288 /* Use tree inlining. */
289 if (!flag_no_inline)
290 flag_no_inline = 1;
291 if (flag_inline_functions)
292 flag_inline_trees = 2;
294 /* If -pedantic, warn about the use of GNU extensions. */
295 if (pedantic && (gfc_option.allow_std & GFC_STD_GNU) != 0)
296 gfc_option.warn_std |= GFC_STD_GNU;
297 /* -std=legacy -pedantic is effectively -std=gnu. */
298 if (pedantic && (gfc_option.allow_std & GFC_STD_LEGACY) != 0)
299 gfc_option.warn_std |= GFC_STD_F95_OBS | GFC_STD_F95_DEL | GFC_STD_LEGACY;
301 /* If the user didn't explicitly specify -f(no)-second-underscore we
302 use it if we're trying to be compatible with f2c, and not
303 otherwise. */
304 if (gfc_option.flag_second_underscore == -1)
305 gfc_option.flag_second_underscore = gfc_option.flag_f2c;
307 if (!gfc_option.flag_automatic && gfc_option.flag_max_stack_var_size != -2
308 && gfc_option.flag_max_stack_var_size != 0)
309 gfc_warning_now ("Flag -fno-automatic overwrites -fmax-stack-var-size=%d",
310 gfc_option.flag_max_stack_var_size);
311 else if (!gfc_option.flag_automatic && gfc_option.flag_recursive)
312 gfc_warning_now ("Flag -fno-automatic overwrites -frecursive");
313 else if (!gfc_option.flag_automatic && gfc_option.flag_openmp)
314 gfc_warning_now ("Flag -fno-automatic overwrites -frecursive implied by "
315 "-fopenmp");
316 else if (gfc_option.flag_max_stack_var_size != -2
317 && gfc_option.flag_recursive)
318 gfc_warning_now ("Flag -frecursive overwrites -fmax-stack-var-size=%d",
319 gfc_option.flag_max_stack_var_size);
320 else if (gfc_option.flag_max_stack_var_size != -2
321 && gfc_option.flag_openmp)
322 gfc_warning_now ("Flag -fmax-stack-var-size=%d overwrites -frecursive "
323 "implied by -fopenmp",
324 gfc_option.flag_max_stack_var_size);
326 /* Implied -frecursive; implemented as -fmax-stack-var-size=-1. */
327 if (gfc_option.flag_max_stack_var_size == -2 && gfc_option.flag_openmp)
328 gfc_option.flag_max_stack_var_size = -1;
330 /* Set default. */
331 if (gfc_option.flag_max_stack_var_size == -2)
332 gfc_option.flag_max_stack_var_size = 32768;
334 /* Implement -frecursive as -fmax-stack-var-size=-1. */
335 if (gfc_option.flag_recursive)
336 gfc_option.flag_max_stack_var_size = -1;
338 /* Implement -fno-automatic as -fmax-stack-var-size=0. */
339 if (!gfc_option.flag_automatic)
340 gfc_option.flag_max_stack_var_size = 0;
342 if (pedantic)
344 gfc_option.warn_ampersand = 1;
345 gfc_option.warn_tabs = 0;
348 if (gfc_option.flag_all_intrinsics)
349 gfc_option.warn_nonstd_intrinsics = 0;
351 return false;
355 /* Set the options for -Wall. */
357 static void
358 set_Wall (int setting)
360 gfc_option.warn_aliasing = setting;
361 gfc_option.warn_ampersand = setting;
362 gfc_option.warn_line_truncation = setting;
363 gfc_option.warn_nonstd_intrinsics = setting;
364 gfc_option.warn_surprising = setting;
365 gfc_option.warn_tabs = !setting;
366 gfc_option.warn_underflow = setting;
367 gfc_option.warn_character_truncation = setting;
369 set_Wunused (setting);
370 warn_return_type = setting;
371 warn_switch = setting;
373 /* We save the value of warn_uninitialized, since if they put
374 -Wuninitialized on the command line, we need to generate a
375 warning about not using it without also specifying -O. */
376 if (setting == 0)
377 warn_uninitialized = 0;
378 else if (warn_uninitialized != 1)
379 warn_uninitialized = 2;
383 static void
384 gfc_handle_module_path_options (const char *arg)
387 if (gfc_option.module_dir != NULL)
389 gfc_status ("gfortran: Only one -M option allowed\n");
390 exit (3);
393 if (arg == NULL)
395 gfc_status ("gfortran: Directory required after -M\n");
396 exit (3);
399 gfc_option.module_dir = (char *) gfc_getmem (strlen (arg) + 2);
400 strcpy (gfc_option.module_dir, arg);
401 strcat (gfc_option.module_dir, "/");
403 gfc_add_include_path (gfc_option.module_dir, true);
407 static void
408 gfc_handle_fpe_trap_option (const char *arg)
410 int result, pos = 0, n;
411 static const char * const exception[] = { "invalid", "denormal", "zero",
412 "overflow", "underflow",
413 "precision", NULL };
414 static const int opt_exception[] = { GFC_FPE_INVALID, GFC_FPE_DENORMAL,
415 GFC_FPE_ZERO, GFC_FPE_OVERFLOW,
416 GFC_FPE_UNDERFLOW, GFC_FPE_PRECISION,
417 0 };
419 while (*arg)
421 while (*arg == ',')
422 arg++;
424 while (arg[pos] && arg[pos] != ',')
425 pos++;
427 result = 0;
428 for (n = 0; exception[n] != NULL; n++)
430 if (exception[n] && strncmp (exception[n], arg, pos) == 0)
432 gfc_option.fpe |= opt_exception[n];
433 arg += pos;
434 pos = 0;
435 result = 1;
436 break;
439 if (!result)
440 gfc_fatal_error ("Argument to -ffpe-trap is not valid: %s", arg);
445 /* Handle command-line options. Returns 0 if unrecognized, 1 if
446 recognized and handled. */
449 gfc_handle_option (size_t scode, const char *arg, int value)
451 int result = 1;
452 enum opt_code code = (enum opt_code) scode;
454 /* Ignore file names. */
455 if (code == N_OPTS)
456 return 1;
458 switch (code)
460 default:
461 result = 0;
462 break;
464 case OPT_Wall:
465 set_Wall (value);
466 break;
468 case OPT_Waliasing:
469 gfc_option.warn_aliasing = value;
470 break;
472 case OPT_Wampersand:
473 gfc_option.warn_ampersand = value;
474 break;
476 case OPT_Wcharacter_truncation:
477 gfc_option.warn_character_truncation = value;
478 break;
480 case OPT_Wconversion:
481 gfc_option.warn_conversion = value;
482 break;
484 case OPT_Wimplicit_interface:
485 gfc_option.warn_implicit_interface = value;
486 break;
488 case OPT_Wline_truncation:
489 gfc_option.warn_line_truncation = value;
490 break;
492 case OPT_Wsurprising:
493 gfc_option.warn_surprising = value;
494 break;
496 case OPT_Wtabs:
497 gfc_option.warn_tabs = value;
498 break;
500 case OPT_Wunderflow:
501 gfc_option.warn_underflow = value;
502 break;
504 case OPT_fall_intrinsics:
505 gfc_option.flag_all_intrinsics = 1;
506 break;
508 case OPT_fautomatic:
509 gfc_option.flag_automatic = value;
510 break;
512 case OPT_fallow_leading_underscore:
513 gfc_option.flag_allow_leading_underscore = value;
514 break;
516 case OPT_fbackslash:
517 gfc_option.flag_backslash = value;
518 break;
520 case OPT_fbacktrace:
521 gfc_option.flag_backtrace = value;
522 break;
524 case OPT_fdump_core:
525 gfc_option.flag_dump_core = value;
526 break;
528 case OPT_fcray_pointer:
529 gfc_option.flag_cray_pointer = value;
530 break;
532 case OPT_ff2c:
533 gfc_option.flag_f2c = value;
534 break;
536 case OPT_fdollar_ok:
537 gfc_option.flag_dollar_ok = value;
538 break;
540 case OPT_fexternal_blas:
541 gfc_option.flag_external_blas = value;
542 break;
544 case OPT_fblas_matmul_limit_:
545 gfc_option.blas_matmul_limit = value;
546 break;
548 case OPT_fd_lines_as_code:
549 gfc_option.flag_d_lines = 1;
550 break;
552 case OPT_fd_lines_as_comments:
553 gfc_option.flag_d_lines = 0;
554 break;
556 case OPT_fdump_parse_tree:
557 gfc_option.verbose = value;
558 break;
560 case OPT_ffixed_form:
561 gfc_option.source_form = FORM_FIXED;
562 break;
564 case OPT_ffixed_line_length_none:
565 gfc_option.fixed_line_length = 0;
566 break;
568 case OPT_ffixed_line_length_:
569 if (value != 0 && value < 7)
570 gfc_fatal_error ("Fixed line length must be at least seven.");
571 gfc_option.fixed_line_length = value;
572 break;
574 case OPT_ffree_form:
575 gfc_option.source_form = FORM_FREE;
576 break;
578 case OPT_fopenmp:
579 gfc_option.flag_openmp = value;
580 break;
582 case OPT_ffree_line_length_none:
583 gfc_option.free_line_length = 0;
584 break;
586 case OPT_ffree_line_length_:
587 if (value != 0 && value < 4)
588 gfc_fatal_error ("Free line length must be at least three.");
589 gfc_option.free_line_length = value;
590 break;
592 case OPT_funderscoring:
593 gfc_option.flag_underscoring = value;
594 break;
596 case OPT_fsecond_underscore:
597 gfc_option.flag_second_underscore = value;
598 break;
600 case OPT_static_libgfortran:
601 #ifndef HAVE_LD_STATIC_DYNAMIC
602 gfc_fatal_error ("-static-libgfortran is not supported in this "
603 "configuration");
604 #endif
605 break;
607 case OPT_fimplicit_none:
608 gfc_option.flag_implicit_none = value;
609 break;
611 case OPT_fintrinsic_modules_path:
612 gfc_add_include_path (arg, false);
613 gfc_add_intrinsic_modules_path (arg);
614 break;
616 case OPT_fmax_errors_:
617 gfc_option.max_errors = value;
618 break;
620 case OPT_fmax_stack_var_size_:
621 gfc_option.flag_max_stack_var_size = value;
622 break;
624 case OPT_fmodule_private:
625 gfc_option.flag_module_private = value;
626 break;
628 case OPT_frange_check:
629 gfc_option.flag_range_check = value;
630 break;
632 case OPT_fpack_derived:
633 gfc_option.flag_pack_derived = value;
634 break;
636 case OPT_frepack_arrays:
637 gfc_option.flag_repack_arrays = value;
638 break;
640 case OPT_fpreprocessed:
641 gfc_option.flag_preprocessed = value;
642 break;
644 case OPT_fmax_identifier_length_:
645 if (value > GFC_MAX_SYMBOL_LEN)
646 gfc_fatal_error ("Maximum supported identifier length is %d",
647 GFC_MAX_SYMBOL_LEN);
648 gfc_option.max_identifier_length = value;
649 break;
651 case OPT_fdefault_integer_8:
652 gfc_option.flag_default_integer = value;
653 break;
655 case OPT_fdefault_real_8:
656 gfc_option.flag_default_real = value;
657 break;
659 case OPT_fdefault_double_8:
660 gfc_option.flag_default_double = value;
661 break;
663 case OPT_finit_local_zero:
664 gfc_option.flag_init_integer = GFC_INIT_INTEGER_ON;
665 gfc_option.flag_init_integer_value = 0;
666 gfc_option.flag_init_real = GFC_INIT_REAL_ZERO;
667 gfc_option.flag_init_logical = GFC_INIT_LOGICAL_FALSE;
668 gfc_option.flag_init_character = GFC_INIT_CHARACTER_ON;
669 gfc_option.flag_init_character_value = (char)0;
670 break;
672 case OPT_finit_logical_:
673 if (!strcasecmp (arg, "false"))
674 gfc_option.flag_init_logical = GFC_INIT_LOGICAL_FALSE;
675 else if (!strcasecmp (arg, "true"))
676 gfc_option.flag_init_logical = GFC_INIT_LOGICAL_TRUE;
677 else
678 gfc_fatal_error ("Unrecognized option to -finit-logical: %s",
679 arg);
680 break;
682 case OPT_finit_real_:
683 if (!strcasecmp (arg, "zero"))
684 gfc_option.flag_init_real = GFC_INIT_REAL_ZERO;
685 else if (!strcasecmp (arg, "nan"))
686 gfc_option.flag_init_real = GFC_INIT_REAL_NAN;
687 else if (!strcasecmp (arg, "inf"))
688 gfc_option.flag_init_real = GFC_INIT_REAL_INF;
689 else if (!strcasecmp (arg, "-inf"))
690 gfc_option.flag_init_real = GFC_INIT_REAL_NEG_INF;
691 else
692 gfc_fatal_error ("Unrecognized option to -finit-real: %s",
693 arg);
694 break;
696 case OPT_finit_integer_:
697 gfc_option.flag_init_integer = GFC_INIT_INTEGER_ON;
698 gfc_option.flag_init_integer_value = atoi (arg);
699 break;
701 case OPT_finit_character_:
702 if (value >= 0 && value <= 127)
704 gfc_option.flag_init_character = GFC_INIT_CHARACTER_ON;
705 gfc_option.flag_init_character_value = (char)value;
707 else
708 gfc_fatal_error ("The value of n in -finit-character=n must be "
709 "between 0 and 127");
710 break;
712 case OPT_I:
713 gfc_add_include_path (arg, true);
714 break;
716 case OPT_J:
717 case OPT_M:
718 gfc_handle_module_path_options (arg);
719 break;
721 case OPT_fsign_zero:
722 gfc_option.flag_sign_zero = value;
723 break;
725 case OPT_ffpe_trap_:
726 gfc_handle_fpe_trap_option (arg);
727 break;
729 case OPT_std_f95:
730 gfc_option.allow_std = GFC_STD_F95_OBS | GFC_STD_F95 | GFC_STD_F77;
731 gfc_option.warn_std = GFC_STD_F95_OBS;
732 gfc_option.max_identifier_length = 31;
733 gfc_option.warn_ampersand = 1;
734 gfc_option.warn_tabs = 0;
735 break;
737 case OPT_std_f2003:
738 gfc_option.allow_std = GFC_STD_F95_OBS | GFC_STD_F77
739 | GFC_STD_F2003 | GFC_STD_F95;
740 gfc_option.warn_std = GFC_STD_F95_OBS;
741 gfc_option.max_continue_fixed = 255;
742 gfc_option.max_continue_free = 255;
743 gfc_option.max_identifier_length = 63;
744 gfc_option.warn_ampersand = 1;
745 gfc_option.warn_tabs = 0;
746 break;
748 case OPT_std_gnu:
749 set_default_std_flags ();
750 break;
752 case OPT_std_legacy:
753 set_default_std_flags ();
754 gfc_option.warn_std = 0;
755 break;
757 case OPT_Wnonstd_intrinsics:
758 gfc_option.warn_nonstd_intrinsics = value;
759 break;
761 case OPT_fshort_enums:
762 gfc_option.fshort_enums = 1;
763 break;
765 case OPT_fconvert_little_endian:
766 gfc_option.convert = GFC_CONVERT_LITTLE;
767 break;
769 case OPT_fconvert_big_endian:
770 gfc_option.convert = GFC_CONVERT_BIG;
771 break;
773 case OPT_fconvert_native:
774 gfc_option.convert = GFC_CONVERT_NATIVE;
775 break;
777 case OPT_fconvert_swap:
778 gfc_option.convert = GFC_CONVERT_SWAP;
779 break;
781 case OPT_frecord_marker_4:
782 gfc_option.record_marker = 4;
783 break;
785 case OPT_frecord_marker_8:
786 gfc_option.record_marker = 8;
787 break;
789 case OPT_fmax_subrecord_length_:
790 if (value > MAX_SUBRECORD_LENGTH)
791 gfc_fatal_error ("Maximum subrecord length cannot exceed %d",
792 MAX_SUBRECORD_LENGTH);
794 gfc_option.max_subrecord_length = value;
795 break;
797 case OPT_frecursive:
798 gfc_option.flag_recursive = 1;
799 break;
802 return result;