Daily bump.
[official-gcc.git] / gcc / f / lang-specs.h
blobb4492a6327d27412d373b1a566d890b7697c8721
1 /* lang-specs.h file for Fortran
2 Copyright (C) 1995-1997, 1999 Free Software Foundation, Inc.
3 Contributed by James Craig Burley.
5 This file is part of GNU Fortran.
7 GNU Fortran is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
12 GNU Fortran is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU Fortran; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20 02111-1307, USA.
24 /* This is the contribution to the `default_compilers' array in gcc.c for
25 g77. */
27 {".F", {"@f77-cpp-input"}},
28 {".fpp", {"@f77-cpp-input"}},
29 {".FPP", {"@f77-cpp-input"}},
30 {"@f77-cpp-input",
31 /* For f77 we want -traditional to avoid errors with, for
32 instance, mismatched '. Also, we avoid unpleasant surprises
33 with substitution of names not prefixed by `_' by using %P
34 rather than %p (although this isn't consistent with SGI and
35 Sun f77, at least) so you test `__unix' rather than `unix'.
36 -D_LANGUAGE_FORTRAN is used by some compilers like SGI and
37 might as well be in there. */
38 {"cpp -lang-c %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I\
39 %{C:%{!E:%eGNU C does not support -C without using -E}}\
40 %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
41 %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2}\
42 %{ansi:-trigraphs -$ -D__STRICT_ANSI__}\
43 %{!undef:%P} -D_LANGUAGE_FORTRAN %{trigraphs} \
44 %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} -traditional\
45 %{ffast-math:-D__FAST_MATH__}\
46 %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\
47 %i %{!M:%{!MM:%{!E:%{!pipe:%g.i}}}}%{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}} |\n",
48 "%{!M:%{!MM:%{!E:f771 %{!pipe:%g.i} %(f771) \
49 %{!Q:-quiet} -dumpbase %b.F %{d*} %{m*} %{a*}\
50 %{g*} %{O*} %{W*} %{w} %{pedantic*} \
51 %{v:-version -fversion} %{pg:-p} %{p} %{f*} %{I*}\
52 %{aux-info*} %{Qn:-fno-ident}\
53 %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
54 %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
55 %{!S:as %a %Y\
56 %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
57 %{!pipe:%g.s} %A\n }}}}"}},
58 {".r", {"@ratfor"}},
59 {"@ratfor",
60 {"ratfor %{C} %{v}\
61 %{C:%{!E:%eGNU C does not support -C without using -E}}\
62 %{!E:%{!pipe:-o %g.f}}%{E:%W{o*}} %i |\n",
63 "%{!E:f771 %{!pipe:%g.f} %(f771) \
64 %{!Q:-quiet} -dumpbase %b.r %{d*} %{m*} %{a*}\
65 %{g*} %{O*} %{W*} %{w} %{pedantic*} \
66 %{v:-version -fversion} %{pg:-p} %{p} %{f*} %{I*}\
67 %{aux-info*} %{Qn:-fno-ident}\
68 %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
69 %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
70 %{!S:as %a %Y\
71 %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
72 %{!pipe:%g.s} %A\n }}"}},
73 {".f", {"@f77"}},
74 {".for", {"@f77"}},
75 {".FOR", {"@f77"}},
76 {"@f77",
77 {"%{!M:%{!MM:%{!E:f771 %i %(f771) \
78 %{!Q:-quiet} -dumpbase %b.f %{d*} %{m*} %{a*}\
79 %{g*} %{O*} %{W*} %{w} %{pedantic*}\
80 %{v:-version -fversion} %{pg:-p} %{p} %{f*} %{I*}\
81 %{aux-info*} %{Qn:-fno-ident}\
82 %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
83 %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
84 %{!S:as %a %Y\
85 %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
86 %{!pipe:%g.s} %A\n }}}}"}},
87 {"@f77-version",
88 {"cpp -lang-c %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I \
89 %{C:%{!E:%eGNU C does not support -C without using -E}} \
90 %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG} \
91 %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2} \
92 %{ansi:-trigraphs -$ -D__STRICT_ANSI__} \
93 %{!undef:%P} -D_LANGUAGE_FORTRAN %{trigraphs} \
94 %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} -traditional \
95 %{ffast-math:-D__FAST_MATH__}\
96 %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z \
97 /dev/null /dev/null \n\
98 f771 -fnull-version %(f771) \
99 %{!Q:-quiet} -dumpbase g77-version.f %{d*} %{m*} %{a*} \
100 %{g*} %{O*} %{W*} %{w} %{pedantic*} \
101 -version -fversion %{f*} %{I*} -o %g.s /dev/null \n\
102 as %a %Y -o %g%O %g.s %A \n\
103 ld %l %X -o %g %g%O %{A} %{d} %{e*} %{m} %{N} %{n} \
104 %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} \
105 %{!A:%{!nostdlib:%{!nostartfiles:%S}}} \
106 %{static:} %{L*} %D -lg2c -lm \
107 %{!nostdlib:%{!nodefaultlibs:%G %L %G}} \
108 %{!A:%{!nostdlib:%{!nostartfiles:%E}}} \
109 %{T*} \n\
110 %g \n"}},