OSDN Git Service

* gcc.c (C specs): Pass -f(no-)show-column to the
[pf3gnuchains/gcc-fork.git] / gcc / cp / lang-specs.h
1 /* Definitions for specs for C++.
2    Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000
3    Free Software Foundation, Inc.
4
5 This file is part of GNU CC.
6
7 GNU CC 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 CC 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 CC; see the file COPYING.  If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.  */
21
22 /* This is the contribution to the `default_compilers' array in gcc.c for
23    g++.  */
24
25   {".cc", {"@c++"}},
26   {".cp", {"@c++"}},
27   {".cxx", {"@c++"}},
28   {".cpp", {"@c++"}},
29   {".c++", {"@c++"}},
30   {".C", {"@c++"}},
31   {"@c++",
32 #if USE_CPPLIB
33    {
34      "%{E|M|MM:cpp -lang-c++ %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I\
35         %{C:%{!E:%eGNU C++ does not support -C without using -E}}\
36         %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
37         %{!no-gcc:-D__GNUC__=%v1 -D__GNUG__=%v1 -D__GNUC_MINOR__=%v2\
38         -D__GNUC_PATCHLEVEL__=%v3} -D__cplusplus\
39         %{ansi:-trigraphs -D__STRICT_ANSI__} %{!undef:%{!ansi:%p} %P}\
40         %{!fno-exceptions:-D__EXCEPTIONS}\
41         %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} %{trigraphs}\
42         %{ffast-math:-D__FAST_MATH__}\
43         %{fshort-wchar:-D__WCHAR_TYPE__=short\\ unsigned\\ int}\
44         %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\
45         %i %{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}}\n}\
46       %{!E:%{!M:%{!MM:cc1plus %i %1 %2\
47                             -lang-c++ %{nostdinc*} %{C} %{A*} %{I*} %{P} %{$} %I\
48                             %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
49                             %{!no-gcc:-D__GNUC__=%v1 -D__GNUG__=%v1\
50                             -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3}\
51                             -D__cplusplus\
52                             %{ansi:-trigraphs -D__STRICT_ANSI__} %{!undef:%{!ansi:%p} %P}\
53                             %{!fno-exceptions:-D__EXCEPTIONS}\
54                             %{fnew-abi:-D__GXX_ABI_VERSION=100}\
55                             %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
56                             %{ffast-math:-D__FAST_MATH__}\
57                             %{fshort-wchar:-D__WCHAR_TYPE__=short\\ unsigned\\ int}\
58                             %{trigraphs}\
59                             %{!Q:-quiet} -dumpbase %b.cc %{d*} %{m*} %{a}\
60                             %{g*} %{O*} %{W*} %{w} %{pedantic*} %{ansi}\
61                             %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\
62                             %{v:-version} %{pg:-p} %{p}\
63                             %{f*} %{+e*} %{aux-info*} %{Qn:-fno-ident}\
64                             %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
65                             %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}}|\n\
66               %{!S:%{!fsyntax-only:as %a %Y\
67                       %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
68                       %{!pipe:%g.s} %A\n }}}}}"}},
69 #else /* ! USE_CPPLIB */
70    {"cpp -lang-c++ %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I\
71         %{C:%{!E:%eGNU C++ does not support -C without using -E}}\
72         %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
73         %{!no-gcc:-D__GNUC__=%v1 -D__GNUG__=%v1 -D__GNUC_MINOR__=%v2\
74         -D__GNUC_PATCHLEVEL__=%v3} -D__cplusplus\
75         %{ansi:-trigraphs -D__STRICT_ANSI__} %{!undef:%{!ansi:%p} %P}\
76         %{!fno-exceptions:-D__EXCEPTIONS}\
77         %{fnew-abi:-D__GXX_ABI_VERSION=100}\
78         %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} %{trigraphs}\
79         %{ffast-math:-D__FAST_MATH__}\
80         %{fshort-wchar:-D__WCHAR_TYPE__=short\\ unsigned\\ int}\
81         %{fshow-column} %{fno-show-column}\
82         %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\
83         %i %{!M:%{!MM:%{!E:%{!pipe:%g.ii}}}}%{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}} |\n",
84     "%{!M:%{!MM:%{!E:cc1plus %{!pipe:%g.ii} %1 %2\
85                             %{!Q:-quiet} -dumpbase %b.cc %{d*} %{m*} %{a}\
86                             %{g*} %{O*} %{W*} %{w} %{pedantic*} %{ansi}\
87                             %{v:-version} %{pg:-p} %{p}\
88                             %{f*} %{+e*} %{aux-info*} %{Qn:-fno-ident}\
89                             %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
90                             %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}}|\n\
91               %{!S:%{!fsyntax-only:as %a %Y\
92                       %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
93                       %{!pipe:%g.s} %A\n }}}}}"}},
94 #endif /* ! USE_CPPLIB */
95   {".ii", {"@c++-cpp-output"}},
96   {"@c++-cpp-output",
97    {"%{!M:%{!MM:%{!E:cc1plus %i %1 %2 %{!Q:-quiet} %{d*} %{m*} %{a}\
98                             %{g*} %{O*} %{W*} %{w} %{pedantic*} %{ansi}\
99                             %{v:-version} %{pg:-p} %{p} -fpreprocessed\
100                             %{f*} %{+e*} %{aux-info*} %{Qn:-fno-ident}\
101                             %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
102                             %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
103                     %{!S:as %a %Y\
104                             %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
105                             %{!pipe:%g.s} %A\n }}}}"}},