annotate gcc/fortran/lang-specs.h @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Contribution to the specs for the GNU Compiler Collection
kono
parents:
diff changeset
2 from GNU Fortran 95 compiler.
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
3 Copyright (C) 2002-2018 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 This file is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
6 it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
7 the Free Software Foundation; either version 3 of the License, or
kono
parents:
diff changeset
8 (at your option) any later version.
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 This file is distributed in the hope that it will be useful,
kono
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
13 GNU General Public License for more details.
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
16 along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
17 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 /* This is the contribution to the `default_compilers' array in gcc.c
kono
parents:
diff changeset
20 for the f95 language. */
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 /* Identical to gcc.c (cpp_options), but omitting %(cpp_unique_options)
kono
parents:
diff changeset
23 and -fpch-preprocess on -save-temps. */
kono
parents:
diff changeset
24 #define CPP_ONLY_OPTIONS "%1 %{m*} %{f*} %{g*:%{!g0:%{g*} \
kono
parents:
diff changeset
25 %{!fno-working-directory:-fworking-directory}}} \
kono
parents:
diff changeset
26 %{std*&ansi&trigraphs} %{W*&pedantic*} %{w} \
kono
parents:
diff changeset
27 %{O*} %{undef}"
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 /* Options that f951 should know about, even if not preprocessing. */
kono
parents:
diff changeset
30 #define CPP_FORWARD_OPTIONS "%{i*} %{I*} %{M*}"
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 #define F951_CPP_OPTIONS "%{!nocpp: -cpp=%g.f90 %{E} %(cpp_unique_options) \
kono
parents:
diff changeset
33 %{E|M|MM:%(cpp_debug_options) " CPP_ONLY_OPTIONS \
kono
parents:
diff changeset
34 " -fsyntax-only};: " CPP_FORWARD_OPTIONS "}"
kono
parents:
diff changeset
35 #define F951_OPTIONS "%(cc1_options) %{J*} \
kono
parents:
diff changeset
36 %{!nostdinc:-fintrinsic-modules-path finclude%s}\
kono
parents:
diff changeset
37 %{!fsyntax-only:%(invoke_as)}"
kono
parents:
diff changeset
38 #define F951_SOURCE_FORM "%{!ffree-form:-ffixed-form}"
kono
parents:
diff changeset
39
kono
parents:
diff changeset
40
kono
parents:
diff changeset
41 {".F", "@f77-cpp-input", 0, 0, 0},
kono
parents:
diff changeset
42 {".FOR", "@f77-cpp-input", 0, 0, 0},
kono
parents:
diff changeset
43 {".FTN", "@f77-cpp-input", 0, 0, 0},
kono
parents:
diff changeset
44 {".fpp", "@f77-cpp-input", 0, 0, 0},
kono
parents:
diff changeset
45 {".FPP", "@f77-cpp-input", 0, 0, 0},
kono
parents:
diff changeset
46 {"@f77-cpp-input",
kono
parents:
diff changeset
47 "f951 %i " F951_SOURCE_FORM " " \
kono
parents:
diff changeset
48 F951_CPP_OPTIONS " %{!E:" F951_OPTIONS "}", 0, 0, 0},
kono
parents:
diff changeset
49 {".f", "@f77", 0, 0, 0},
kono
parents:
diff changeset
50 {".for", "@f77", 0, 0, 0},
kono
parents:
diff changeset
51 {".ftn", "@f77", 0, 0, 0},
kono
parents:
diff changeset
52 {"@f77",
kono
parents:
diff changeset
53 "f951 %i " F951_SOURCE_FORM " \
kono
parents:
diff changeset
54 %{E:%{!cpp:%egfortran does not support -E without -cpp}} \
kono
parents:
diff changeset
55 %{cpp:" F951_CPP_OPTIONS ";: " CPP_FORWARD_OPTIONS "} \
kono
parents:
diff changeset
56 %{!E:" F951_OPTIONS "}", 0, 0, 0},
kono
parents:
diff changeset
57 {".F90", "@f95-cpp-input", 0, 0, 0},
kono
parents:
diff changeset
58 {".F95", "@f95-cpp-input", 0, 0, 0},
kono
parents:
diff changeset
59 {".F03", "@f95-cpp-input", 0, 0, 0},
kono
parents:
diff changeset
60 {".F08", "@f95-cpp-input", 0, 0, 0},
kono
parents:
diff changeset
61 {"@f95-cpp-input",
kono
parents:
diff changeset
62 "f951 %i " F951_CPP_OPTIONS " %{!E:" F951_OPTIONS "}", 0, 0, 0},
kono
parents:
diff changeset
63 {".f90", "@f95", 0, 0, 0},
kono
parents:
diff changeset
64 {".f95", "@f95", 0, 0, 0},
kono
parents:
diff changeset
65 {".f03", "@f95", 0, 0, 0},
kono
parents:
diff changeset
66 {".f08", "@f95", 0, 0, 0},
kono
parents:
diff changeset
67 {"@f95",
kono
parents:
diff changeset
68 "f951 %i %{E:%{!cpp:%egfortran does not support -E without -cpp}}\
kono
parents:
diff changeset
69 %{cpp:" F951_CPP_OPTIONS ";: " CPP_FORWARD_OPTIONS "} \
kono
parents:
diff changeset
70 %{!E:" F951_OPTIONS "}", 0, 0, 0},
kono
parents:
diff changeset
71
kono
parents:
diff changeset
72
kono
parents:
diff changeset
73 #undef CPP_ONLY_OPTIONS
kono
parents:
diff changeset
74 #undef CPP_FORWARD_OPTIONS
kono
parents:
diff changeset
75 #undef F951_SOURCE_FORM
kono
parents:
diff changeset
76 #undef F951_CPP_OPTIONS
kono
parents:
diff changeset
77 #undef F951_OPTIONS