-
- Downloads
gfortran.h (gfc_option_t): Remove source field.
fortran/ * gfortran.h (gfc_option_t): Remove source field. Add flag_d_lines field. (gfc_new_file): Remove arguments in prototype. (gfc_source_file): Make 'const char *'. * f95-lang.c (gfc_init): Use gfc_source_file instead of gfc_option.source. Call gfc_new_file without arguments. * invoke.texi: Document new options '-fd-lines-as-code' and '-fd-lines-as-comment'. * lang.opt: Add new options. Alphabetize. * options.c (gfc_init_options): Initialize gfc_source_file instead of gfc_option.source. Initialize gfc_option.flag_d_lines. (form_from_filename): Move here from scanner.c. Make 'filename' argument 'const'. (gfc_post_options): Set gfc_source_file. Determine source form. Warn if 'd-lines*' are used in free form. * scanner.c (gfc_source_file): Constify. (skip_fixed_comments): Deal with d-lines. (get_file): Constify argument 'name'. (load_file): Constify argument 'filename'. (form_from_filename): Moved to options.c. (gfc_new_file): Remove arguments. Don't initialize gfc_source_file, don't determine source form. * trans-const.c (gfc_init_constants): Use gfc_source_file instead of gfc_option.source. testsuite/ * d_lines_1.f, d_lines_2.f, d_lines_3.f, d_lines_4.f, d_lines_5.f: New. From-SVN: r103322
Showing
- gcc/fortran/ChangeLog 27 additions, 0 deletionsgcc/fortran/ChangeLog
- gcc/fortran/f95-lang.c 3 additions, 3 deletionsgcc/fortran/f95-lang.c
- gcc/fortran/gfortran.h 3 additions, 3 deletionsgcc/fortran/gfortran.h
- gcc/fortran/invoke.texi 13 additions, 1 deletiongcc/fortran/invoke.texi
- gcc/fortran/lang.opt 12 additions, 4 deletionsgcc/fortran/lang.opt
- gcc/fortran/options.c 107 additions, 2 deletionsgcc/fortran/options.c
- gcc/fortran/scanner.c 20 additions, 100 deletionsgcc/fortran/scanner.c
- gcc/fortran/trans-const.c 1 addition, 1 deletiongcc/fortran/trans-const.c
- gcc/testsuite/ChangeLog 5 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gfortran.dg/d_lines_1.f 5 additions, 0 deletionsgcc/testsuite/gfortran.dg/d_lines_1.f
- gcc/testsuite/gfortran.dg/d_lines_2.f 6 additions, 0 deletionsgcc/testsuite/gfortran.dg/d_lines_2.f
- gcc/testsuite/gfortran.dg/d_lines_3.f 10 additions, 0 deletionsgcc/testsuite/gfortran.dg/d_lines_3.f
- gcc/testsuite/gfortran.dg/d_lines_4.f 3 additions, 0 deletionsgcc/testsuite/gfortran.dg/d_lines_4.f
- gcc/testsuite/gfortran.dg/d_lines_5.f 3 additions, 0 deletionsgcc/testsuite/gfortran.dg/d_lines_5.f
Loading
Please register or sign in to comment