xref: /openbsd-src/gnu/usr.bin/gcc/gcc/cp/lang-specs.h (revision c87b03e512fc05ed6e0222f6fb0ae86264b1d05b)
1*c87b03e5Sespie /* Definitions for specs for C++.
2*c87b03e5Sespie    Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
3*c87b03e5Sespie    Free Software Foundation, Inc.
4*c87b03e5Sespie 
5*c87b03e5Sespie This file is part of GNU CC.
6*c87b03e5Sespie 
7*c87b03e5Sespie GNU CC is free software; you can redistribute it and/or modify
8*c87b03e5Sespie it under the terms of the GNU General Public License as published by
9*c87b03e5Sespie the Free Software Foundation; either version 2, or (at your option)
10*c87b03e5Sespie any later version.
11*c87b03e5Sespie 
12*c87b03e5Sespie GNU CC is distributed in the hope that it will be useful,
13*c87b03e5Sespie but WITHOUT ANY WARRANTY; without even the implied warranty of
14*c87b03e5Sespie MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15*c87b03e5Sespie GNU General Public License for more details.
16*c87b03e5Sespie 
17*c87b03e5Sespie You should have received a copy of the GNU General Public License
18*c87b03e5Sespie along with GNU CC; see the file COPYING.  If not, write to
19*c87b03e5Sespie the Free Software Foundation, 59 Temple Place - Suite 330,
20*c87b03e5Sespie Boston, MA 02111-1307, USA.  */
21*c87b03e5Sespie 
22*c87b03e5Sespie /* This is the contribution to the `default_compilers' array in gcc.c for
23*c87b03e5Sespie    g++.  */
24*c87b03e5Sespie 
25*c87b03e5Sespie #ifndef CPLUSPLUS_CPP_SPEC
26*c87b03e5Sespie #define CPLUSPLUS_CPP_SPEC 0
27*c87b03e5Sespie #endif
28*c87b03e5Sespie 
29*c87b03e5Sespie   {".cc",  "@c++", 0},
30*c87b03e5Sespie   {".cp",  "@c++", 0},
31*c87b03e5Sespie   {".cxx", "@c++", 0},
32*c87b03e5Sespie   {".cpp", "@c++", 0},
33*c87b03e5Sespie   {".c++", "@c++", 0},
34*c87b03e5Sespie   {".C",   "@c++", 0},
35*c87b03e5Sespie   {"@c++",
36*c87b03e5Sespie     "%{E|M|MM:cc1plus -E %{!no-gcc:-D__GNUG__=%v1}\
37*c87b03e5Sespie        %(cpp_options) %2 %(cpp_debug_options)}\
38*c87b03e5Sespie      %{!E:%{!M:%{!MM:\
39*c87b03e5Sespie        %{save-temps|no-integrated-cpp:cc1plus -E %{!no-gcc:-D__GNUG__=%v1}\
40*c87b03e5Sespie 		%(cpp_options) %2 %{save-temps:%b.ii} %{!save-temps:%g.ii} \n}\
41*c87b03e5Sespie       cc1plus %{save-temps|no-integrated-cpp:-fpreprocessed %{save-temps:%b.ii} %{!save-temps:%g.ii}}\
42*c87b03e5Sespie 	      %{!save-temps:%{!no-integrated-cpp:%(cpp_unique_options) %{!no-gcc:-D__GNUG__=%v1}}}\
43*c87b03e5Sespie 	%(cc1_options) %2 %{+e1*}\
44*c87b03e5Sespie        %{!fsyntax-only:%(invoke_as)}}}}",
45*c87b03e5Sespie      CPLUSPLUS_CPP_SPEC},
46*c87b03e5Sespie   {".ii", "@c++-cpp-output", 0},
47*c87b03e5Sespie   {"@c++-cpp-output",
48*c87b03e5Sespie    "%{!M:%{!MM:%{!E:\
49*c87b03e5Sespie     cc1plus -fpreprocessed %i %(cc1_options) %2 %{+e*}\
50*c87b03e5Sespie     %{!fsyntax-only:%(invoke_as)}}}}", 0},
51