OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / gcc / f / lang-specs.h
1 /* lang-specs.h file for Fortran
2    Copyright (C) 1995, 1996, 1997, 1999, 2000 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", 0},
28   {".fpp", "@f77-cpp-input", 0},
29   {".FPP", "@f77-cpp-input", 0},
30   {"@f77-cpp-input",
31    "tradcpp0 -lang-fortran %(cpp_options) %{!M:%{!MM:%{!E:%{!pipe:%g.f |\n\
32     f771 %{!pipe:%g.f} %(cc1_options) %{I*} %{!fsyntax-only:%(invoke_as)}}}}}", 0},
33   {".r", "@ratfor", 0},
34   {"@ratfor",
35    "%{C:%{!E:%eGNU C does not support -C without using -E}}\
36     ratfor %{C} %{v} %i %{E:%W{o*}} %{!E: %{!pipe:-o %g.f} |\n\
37     f771 %{!pipe:%g.f} %(cc1_options) %{I*} %{!fsyntax-only:%(invoke_as)}}", 0},
38   {".f",   "@f77", 0},
39   {".for", "@f77", 0},
40   {".FOR", "@f77", 0},
41   {"@f77",
42    "%{!M:%{!MM:%{!E:f771 %i %(cc1_options) %{I*}\
43         %{!fsyntax-only:%(invoke_as)}}}}", 0},
44   /* XXX This is perverse and should not be necessary.  */
45   {"@f77-version",
46    "tradcpp0 -lang-fortran %(cpp_options) %j \n\
47     f771 -fnull-version %1 \
48       %{!Q:-quiet} -dumpbase g77-version.f %{d*} %{m*} %{a*} \
49       %{g*} %{O*} %{W*} %{w} %{pedantic*} \
50       -version -fversion %{f*} %{I*} -o %g.s %j \n\
51      as %a %Y -o %g%O %g.s %A \n\
52      ld %l %X -o %g %g%O %{A} %{d} %{e*} %{m} %{N} %{n} \
53       %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} \
54       %{!A:%{!nostdlib:%{!nostartfiles:%S}}} \
55       %{static:} %{L*} %D -lg2c -lm \
56       %{!nostdlib:%{!nodefaultlibs:%G %L %G}} \
57       %{!A:%{!nostdlib:%{!nostartfiles:%E}}} \
58       %{T*} \n\
59      %g \n", 0},