aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/options.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-11-21 09:07:51 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2018-11-21 09:07:51 +0100
commit7c74e813c9de0562b447f20fb51de8d36ea396bb (patch)
tree87bd54b85e5e380e98822908a61c166c499c6438 /gcc/fortran/options.c
parentb8923037ef1b229326b7f238580d91bbbb76b8ff (diff)
downloadgcc-7c74e813c9de0562b447f20fb51de8d36ea396bb.zip
gcc-7c74e813c9de0562b447f20fb51de8d36ea396bb.tar.gz
gcc-7c74e813c9de0562b447f20fb51de8d36ea396bb.tar.bz2
lang.opt (fdec-include): New option.
* lang.opt (fdec-include): New option. * options.c (set_dec_flags): Set also flag_dec_include. * scanner.c (include_line): Change return type from bool to int. In fixed form allow spaces in between include keyword letters. For -fdec-include, allow in fixed form 0 in column 6. With -fdec-include return -1 if the parsed line is not full include statement and it could be successfully completed on continuation lines. (include_stmt): New function. (load_file): Adjust include_line caller. If it returns -1, keep trying include_stmt until it stops returning -1 whenever adding further line of input. * gfortran.dg/include_10.f: New test. * gfortran.dg/include_10.inc: New file. * gfortran.dg/include_11.f: New test. * gfortran.dg/include_12.f: New test. * gfortran.dg/include_13.f90: New test. * gfortran.dg/gomp/include_1.f: New test. * gfortran.dg/gomp/include_1.inc: New file. * gfortran.dg/gomp/include_2.f90: New test. Co-Authored-By: Mark Eggleston <mark.eggleston@codethink.com> From-SVN: r266337
Diffstat (limited to 'gcc/fortran/options.c')
-rw-r--r--gcc/fortran/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
index 73f5389..e59ba31 100644
--- a/gcc/fortran/options.c
+++ b/gcc/fortran/options.c
@@ -68,6 +68,7 @@ set_dec_flags (int value)
flag_dec_intrinsic_ints |= value;
flag_dec_static |= value;
flag_dec_math |= value;
+ flag_dec_include |= value;
}