diff options
author | Tobias Burnus <burnus@net-b.de> | 2007-01-26 09:35:19 +0100 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2007-01-26 09:35:19 +0100 |
commit | 7befd5d26a19507b98e417275f72dcf8f26ba385 (patch) | |
tree | 26ea84131dede30ad486d4bce02781c268e568c8 /gcc/fortran | |
parent | 4b26d10bccf3532cfee49f09346f0c1376d9968b (diff) | |
download | gcc-7befd5d26a19507b98e417275f72dcf8f26ba385.zip gcc-7befd5d26a19507b98e417275f72dcf8f26ba385.tar.gz gcc-7befd5d26a19507b98e417275f72dcf8f26ba385.tar.bz2 |
lang-specs.h: Add support for .f03 and .F03 extensions.
fortran/
2007-01-26 Tobias Burnus <burnus@net-b.de>
* lang-specs.h: Add support for .f03 and .F03 extensions.
* gfortran.texi: Document .f03 extension.
* options.c (form_from_filename): Recognize .f03.
testsuite/
2007-01-26 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/gomp/gomp.exp: Support .f03 extension.
* gfortran.dg/vect/vect.exp: Ditto.
* gfortran.dg/dg.exp: Ditto.
* gfortran.fortran-torture/execute/execute.exp: Ditto.
* gfortran.fortran-torture/compile/compile.exp: Ditto.
libgomp/
2007-01-26 Tobias Burnus <burnus@net-b.de>
* testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
From-SVN: r121201
Diffstat (limited to 'gcc/fortran')
-rw-r--r-- | gcc/fortran/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/fortran/gfortran.texi | 4 | ||||
-rw-r--r-- | gcc/fortran/lang-specs.h | 2 | ||||
-rw-r--r-- | gcc/fortran/options.c | 3 |
4 files changed, 13 insertions, 2 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index fe816b7..5c2b184 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2007-01-26 Tobias Burnus <burnus@net-b.de> + + * lang-specs.h: Add support for .f03 and .F03 extensions. + * gfortran.texi: Document .f03 extension. + * options.c (form_from_filename): Recognize .f03. + 2007-01-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org> PR fortran/30437 diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi index 133a6ea..08fa011 100644 --- a/gcc/fortran/gfortran.texi +++ b/gcc/fortran/gfortran.texi @@ -367,8 +367,8 @@ the relevant compiler front-end program (e.g., @command{f951} for Fortran) for each file in the source code, and then calls the assembler and linker as appropriate to produce the compiled output. In a copy of GCC which has been compiled with Fortran language support enabled, -@command{gcc} will recognize files with @file{.f}, @file{.f90}, and -@file{.f95} extensions as Fortran source code, and compile it +@command{gcc} will recognize files with @file{.f}, @file{.f90}, @file{.f95}, +and @file{.f03} extensions as Fortran source code, and compile it accordingly. A @command{gfortran} driver program is also provided, which is identical to @command{gcc} except that it automatically links the Fortran runtime libraries into the compiled program. diff --git a/gcc/fortran/lang-specs.h b/gcc/fortran/lang-specs.h index 56e55a1..5f005c5 100644 --- a/gcc/fortran/lang-specs.h +++ b/gcc/fortran/lang-specs.h @@ -18,6 +18,7 @@ This file is licensed under the GPL. */ -fpreprocessed %{!nostdinc:-fintrinsic-modules-path finclude%s} %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0}, {".F90", "@f95-cpp-input", 0, 0, 0}, {".F95", "@f95-cpp-input", 0, 0, 0}, +{".F03", "@f95-cpp-input", 0, 0, 0}, {"@f95-cpp-input", "cc1 -E -lang-fortran -traditional-cpp -D_LANGUAGE_FORTRAN %(cpp_options) \ %{E|M|MM:%(cpp_debug_options)}\ @@ -26,6 +27,7 @@ This file is licensed under the GPL. */ -fpreprocessed %{!nostdinc:-fintrinsic-modules-path finclude%s} %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0}, {".f90", "@f95", 0, 0, 0}, {".f95", "@f95", 0, 0, 0}, +{".f03", "@f95", 0, 0, 0}, {"@f95", "%{!E:f951 %i %(cc1_options) %{J*} %{I*}\ %{!nostdinc:-fintrinsic-modules-path finclude%s} %{!fsyntax-only:%(invoke_as)}}", 0, 0, 0}, {".f", "@f77", 0, 0, 0}, diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c index 056ba33..4a00cea 100644 --- a/gcc/fortran/options.c +++ b/gcc/fortran/options.c @@ -136,6 +136,9 @@ form_from_filename (const char *filename) ".f95", FORM_FREE} , { + ".f03", FORM_FREE} + , + { ".f", FORM_FIXED} , { |