118334Speter/* Definitions for specs for C++. 2132718Skan Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 3169689Skan 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 418334Speter 5132718SkanThis file is part of GCC. 618334Speter 7132718SkanGCC is free software; you can redistribute it and/or modify 818334Speterit under the terms of the GNU General Public License as published by 918334Speterthe Free Software Foundation; either version 2, or (at your option) 1018334Speterany later version. 1118334Speter 12132718SkanGCC is distributed in the hope that it will be useful, 1318334Speterbut WITHOUT ANY WARRANTY; without even the implied warranty of 1418334SpeterMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1518334SpeterGNU General Public License for more details. 1618334Speter 1718334SpeterYou should have received a copy of the GNU General Public License 18132718Skanalong with GCC; see the file COPYING. If not, write to 19169689Skanthe Free Software Foundation, 51 Franklin Street, Fifth Floor, 20169689SkanBoston, MA 02110-1301, USA. */ 2118334Speter 2218334Speter/* This is the contribution to the `default_compilers' array in gcc.c for 2318334Speter g++. */ 2418334Speter 2590075Sobrien#ifndef CPLUSPLUS_CPP_SPEC 2690075Sobrien#define CPLUSPLUS_CPP_SPEC 0 2790075Sobrien#endif 2890075Sobrien 29169689Skan {".cc", "@c++", 0, 0, 0}, 30169689Skan {".cp", "@c++", 0, 0, 0}, 31169689Skan {".cxx", "@c++", 0, 0, 0}, 32169689Skan {".cpp", "@c++", 0, 0, 0}, 33169689Skan {".c++", "@c++", 0, 0, 0}, 34169689Skan {".C", "@c++", 0, 0, 0}, 35169689Skan {".CPP", "@c++", 0, 0, 0}, 36169689Skan {".H", "@c++-header", 0, 0, 0}, 37169689Skan {".hh", "@c++-header", 0, 0, 0}, 38132718Skan {"@c++-header", 39132718Skan "%{E|M|MM:cc1plus -E %(cpp_options) %2 %(cpp_debug_options)}\ 40132718Skan %{!E:%{!M:%{!MM:\ 41132718Skan %{save-temps|no-integrated-cpp:cc1plus -E\ 42132718Skan %(cpp_options) %2 -o %{save-temps:%b.ii} %{!save-temps:%g.ii} \n}\ 43132718Skan cc1plus %{save-temps|no-integrated-cpp:-fpreprocessed %{save-temps:%b.ii} %{!save-temps:%g.ii}}\ 44132718Skan %{!save-temps:%{!no-integrated-cpp:%(cpp_unique_options)}}\ 45132718Skan %(cc1_options) %2 %{+e1*}\ 46169689Skan %{!fsyntax-only:-o %g.s %{!o*:--output-pch=%i.gch} %W{o*:--output-pch=%*}%V}}}}", 47169689Skan CPLUSPLUS_CPP_SPEC, 0, 0}, 4818334Speter {"@c++", 49132718Skan "%{E|M|MM:cc1plus -E %(cpp_options) %2 %(cpp_debug_options)}\ 5090075Sobrien %{!E:%{!M:%{!MM:\ 51132718Skan %{save-temps|no-integrated-cpp:cc1plus -E\ 52132718Skan %(cpp_options) %2 -o %{save-temps:%b.ii} %{!save-temps:%g.ii} \n}\ 5396263Sobrien cc1plus %{save-temps|no-integrated-cpp:-fpreprocessed %{save-temps:%b.ii} %{!save-temps:%g.ii}}\ 54132718Skan %{!save-temps:%{!no-integrated-cpp:%(cpp_unique_options)}}\ 55117395Skan %(cc1_options) %2 %{+e1*}\ 5690075Sobrien %{!fsyntax-only:%(invoke_as)}}}}", 57169689Skan CPLUSPLUS_CPP_SPEC, 0, 0}, 58169689Skan {".ii", "@c++-cpp-output", 0, 0, 0}, 5918334Speter {"@c++-cpp-output", 6090075Sobrien "%{!M:%{!MM:%{!E:\ 6190075Sobrien cc1plus -fpreprocessed %i %(cc1_options) %2 %{+e*}\ 62169689Skan %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0}, 63