]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/cp/lang-specs.h
Fix copyrights
[thirdparty/gcc.git] / gcc / cp / lang-specs.h
1 /* Definitions for specs for C++.
2 Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
3
4 This file is part of GNU CC.
5
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20
21 /* This is the contribution to the `default_compilers' array in gcc.c for
22 g++. */
23
24 {".cc", {"@c++"}},
25 {".cp", {"@c++"}},
26 {".cxx", {"@c++"}},
27 {".cpp", {"@c++"}},
28 {".c++", {"@c++"}},
29 {".C", {"@c++"}},
30 {"@c++",
31 #if USE_CPPLIB
32 {
33 "%{E|M|MM:cpp -lang-c++ %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I\
34 %{C:%{!E:%eGNU C++ does not support -C without using -E}}\
35 %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
36 %{!no-gcc:-D__GNUC__=%v1 -D__GNUG__=%v1 -D__GNUC_MINOR__=%v2\
37 -D__GNUC_PATCHLEVEL__=%v3} -D__cplusplus\
38 %{ansi:-trigraphs -D__STRICT_ANSI__} %{!undef:%{!ansi:%p} %P}\
39 %{!fno-exceptions:-D__EXCEPTIONS}\
40 %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} %{trigraphs}\
41 %{ffast-math:-D__FAST_MATH__}\
42 %{fshort-wchar:-D__WCHAR_TYPE__=short\\ unsigned\\ int}\
43 %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\
44 %i %{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}}\n}\
45 %{!E:%{!M:%{!MM:cc1plus %i %1 %2\
46 -lang-c++ %{nostdinc*} %{C} %{A*} %{I*} %{P} %{$} %I\
47 %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
48 %{!no-gcc:-D__GNUC__=%v1 -D__GNUG__=%v1\
49 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3}\
50 -D__cplusplus\
51 %{ansi:-trigraphs -D__STRICT_ANSI__} %{!undef:%{!ansi:%p} %P}\
52 %{!fno-exceptions:-D__EXCEPTIONS}\
53 %{fnew-abi:-D__GXX_ABI_VERSION=100}\
54 %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
55 %{ffast-math:-D__FAST_MATH__}\
56 %{fshort-wchar:-D__WCHAR_TYPE__=short\\ unsigned\\ int}\
57 %{trigraphs}\
58 %{!Q:-quiet} -dumpbase %b.cc %{d*} %{m*} %{a}\
59 %{g*} %{O*} %{W*} %{w} %{pedantic*} %{ansi}\
60 %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\
61 %{v:-version} %{pg:-p} %{p}\
62 %{f*} %{+e*} %{aux-info*} %{Qn:-fno-ident}\
63 %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
64 %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}}|\n\
65 %{!S:as %a %Y\
66 %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
67 %{!pipe:%g.s} %A\n }}}}"}},
68 #else /* ! USE_CPPLIB */
69 {"cpp -lang-c++ %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I\
70 %{C:%{!E:%eGNU C++ does not support -C without using -E}}\
71 %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
72 %{!no-gcc:-D__GNUC__=%v1 -D__GNUG__=%v1 -D__GNUC_MINOR__=%v2\
73 -D__GNUC_PATCHLEVEL__=%v3} -D__cplusplus\
74 %{ansi:-trigraphs -D__STRICT_ANSI__} %{!undef:%{!ansi:%p} %P}\
75 %{!fno-exceptions:-D__EXCEPTIONS}\
76 %{fnew-abi:-D__GXX_ABI_VERSION=100}\
77 %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} %{trigraphs}\
78 %{ffast-math:-D__FAST_MATH__}\
79 %{fshort-wchar:-D__WCHAR_TYPE__=short\\ unsigned\\ int}\
80 %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\
81 %i %{!M:%{!MM:%{!E:%{!pipe:%g.ii}}}}%{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}} |\n",
82 "%{!M:%{!MM:%{!E:cc1plus %{!pipe:%g.ii} %1 %2\
83 %{!Q:-quiet} -dumpbase %b.cc %{d*} %{m*} %{a}\
84 %{g*} %{O*} %{W*} %{w} %{pedantic*} %{ansi}\
85 %{v:-version} %{pg:-p} %{p}\
86 %{f*} %{+e*} %{aux-info*} %{Qn:-fno-ident}\
87 %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
88 %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}}|\n\
89 %{!S:as %a %Y\
90 %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
91 %{!pipe:%g.s} %A\n }}}}"}},
92 #endif /* ! USE_CPPLIB */
93 {".ii", {"@c++-cpp-output"}},
94 {"@c++-cpp-output",
95 {"%{!M:%{!MM:%{!E:cc1plus %i %1 %2 %{!Q:-quiet} %{d*} %{m*} %{a}\
96 %{g*} %{O*} %{W*} %{w} %{pedantic*} %{ansi}\
97 %{v:-version} %{pg:-p} %{p} -fpreprocessed\
98 %{f*} %{+e*} %{aux-info*} %{Qn:-fno-ident}\
99 %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
100 %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
101 %{!S:as %a %Y\
102 %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
103 %{!pipe:%g.s} %A\n }}}}"}},