]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/f/lang-specs.h
2000-07-26 Toon Moene <toon@moene.indiv.nluug.nl>
[thirdparty/gcc.git] / gcc / f / lang-specs.h
1 /* lang-specs.h file for Fortran
2 Copyright (C) 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
3 Contributed by James Craig Burley.
4
5 This file is part of GNU Fortran.
6
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.
11
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.
16
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.
21
22 */
23
24 /* This is the contribution to the `default_compilers' array in gcc.c for
25 g77. */
26
27 {".F", "@f77-cpp-input"},
28 {".fpp", "@f77-cpp-input"},
29 {".FPP", "@f77-cpp-input"},
30 {"@f77-cpp-input",
31 "tradcpp -lang-fortran %(cpp_options) %{!M:%{!MM:%{!E:%{!pipe:%g.f |\n\
32 f771 %{!pipe:%g.f} %(cc1_options) %{!S:-o %{|!pipe:%g.s} |\n\
33 as %(asm_options) %{!pipe:%g.s} %A }}}}}\n"},
34 {".r", "@ratfor"},
35 {"@ratfor",
36 "%{C:%{!E:%eGNU C does not support -C without using -E}}\
37 ratfor %{C} %{v} %i %{E:%W{o*}} %{!E: %{!pipe:-o %g.f} |\n\
38 f771 %{!pipe:%g.f} %(cc1_options) %{!S:-o %{|!pipe:%g.s} |\n\
39 as %(asm_options) %{!pipe:%g.s} %A }}\n"},
40 {".f", "@f77"},
41 {".for", "@f77"},
42 {".FOR", "@f77"},
43 {"@f77",
44 "%{!M:%{!MM:%{!E:f771 %i %(cc1_options) %{!S:-o %{|!pipe:%g.s} |\n\
45 as %(asm_options) %{!pipe:%g.s} %A }}}}\n"},
46 /* XXX This is perverse and should not be necessary. */
47 {"@f77-version",
48 "tradcpp -lang-fortran %(cpp_options) /dev/null \n\
49 f771 -fnull-version %1 \
50 %{!Q:-quiet} -dumpbase g77-version.f %{d*} %{m*} %{a*} \
51 %{g*} %{O*} %{W*} %{w} %{pedantic*} \
52 -version -fversion %{f*} %{I*} -o %g.s /dev/null \n\
53 as %a %Y -o %g%O %g.s %A \n\
54 ld %l %X -o %g %g%O %{A} %{d} %{e*} %{m} %{N} %{n} \
55 %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} \
56 %{!A:%{!nostdlib:%{!nostartfiles:%S}}} \
57 %{static:} %{L*} %D -lg2c -lm \
58 %{!nostdlib:%{!nodefaultlibs:%G %L %G}} \
59 %{!A:%{!nostdlib:%{!nostartfiles:%E}}} \
60 %{T*} \n\
61 %g \n"},