Update concepts branch to revision 131834
[official-gcc.git] / gcc / fortran / lang-specs.h
blobe4bd0509c8b8bb5770d1e75efe71b0158dae604a
1 /* Contribution to the specs for the GNU Compiler Collection
2 from GNU Fortran 95 compiler.
3 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008
4 Free Software Foundation, Inc.
6 This file is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This file is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 /* This is the contribution to the `default_compilers' array in gcc.c
21 for the f95 language. */
24 #define F951_CPP_OPTIONS "%{!nocpp: -cpp %g.f90 %(cpp_options)\
25 %{E|M|MM:%(cpp_debug_options) -fsyntax-only} %{E}}"
26 #define F951_OPTIONS "%(cc1_options) %{J*} %{I*}\
27 %{!nostdinc:-fintrinsic-modules-path finclude%s}\
28 %{!fsyntax-only:%(invoke_as)}"
29 #define F951_SOURCE_FORM "%{!ffree-form:-ffixed-form}"
32 {".F", "@f77-cpp-input", 0, 0, 0},
33 {".FOR", "@f77-cpp-input", 0, 0, 0},
34 {".FTN", "@f77-cpp-input", 0, 0, 0},
35 {".fpp", "@f77-cpp-input", 0, 0, 0},
36 {".FPP", "@f77-cpp-input", 0, 0, 0},
37 {"@f77-cpp-input",
38 "f951 %i " F951_SOURCE_FORM " " \
39 F951_CPP_OPTIONS " %{!E:" F951_OPTIONS "}", 0, 0, 0},
40 {".f", "@f77", 0, 0, 0},
41 {".for", "@f77", 0, 0, 0},
42 {".ftn", "@f77", 0, 0, 0},
43 {"@f77",
44 "f951 %i " F951_SOURCE_FORM " \
45 %{E:%{!cpp:%egfortran does not support -E without -cpp}} \
46 %{cpp:" F951_CPP_OPTIONS "} %{!E:" F951_OPTIONS "}", 0, 0, 0},
47 {".F90", "@f95-cpp-input", 0, 0, 0},
48 {".F95", "@f95-cpp-input", 0, 0, 0},
49 {".F03", "@f95-cpp-input", 0, 0, 0},
50 {".F08", "@f95-cpp-input", 0, 0, 0},
51 {"@f95-cpp-input",
52 "f951 %i " F951_CPP_OPTIONS " %{!E:" F951_OPTIONS "}", 0, 0, 0},
53 {".f90", "@f95", 0, 0, 0},
54 {".f95", "@f95", 0, 0, 0},
55 {".f03", "@f95", 0, 0, 0},
56 {".f08", "@f95", 0, 0, 0},
57 {"@f95",
58 "f951 %i %{E:%{!cpp:%egfortran does not support -E without -cpp}}\
59 %{cpp:" F951_CPP_OPTIONS "} %{!E:" F951_OPTIONS "}", 0, 0, 0},
62 #undef F951_SOURCE_FORM
63 #undef F951_CPP_OPTIONS
64 #undef F951_OPTIONS