2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
[official-gcc.git] / gcc / objc / lang-specs.h
blob62ffb99541f8effd48529928297789633c234637
1 /* Definitions for specs for Objective-C.
2 Copyright (C) 1998, 1999, 2002, 2002, 2003, 2005, 2007
3 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC 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 3, or (at your option)
10 any later version.
12 GCC 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.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
22 /* This is the contribution to the `default_compilers' array in gcc.c for
23 objc. */
25 {".m", "@objective-c", 0, 0, 0},
26 {"@objective-c",
27 "%{E|M|MM:cc1obj -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}\
28 %(cpp_options) %(cpp_debug_options)}\
29 %{!E:%{!M:%{!MM:\
30 %{traditional|ftraditional|traditional-cpp:\
31 %eGNU Objective C no longer supports traditional compilation}\
32 %{save-temps|no-integrated-cpp:cc1obj -E %(cpp_options) -o %{save-temps:%b.mi} %{!save-temps:%g.mi} \n\
33 cc1obj -fpreprocessed %{save-temps:%b.mi} %{!save-temps:%g.mi} %(cc1_options) %{print-objc-runtime-info} %{gen-decls}}\
34 %{!save-temps:%{!no-integrated-cpp:\
35 cc1obj %(cpp_unique_options) %(cc1_options) %{print-objc-runtime-info} %{gen-decls}}}\
36 %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0},
37 {".mi", "@objc-cpp-output", 0, 0, 0},
38 {"@objc-cpp-output",
39 "%{!M:%{!MM:%{!E:cc1obj -fpreprocessed %i %(cc1_options) %{print-objc-runtime-info} %{gen-decls}\
40 %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0},
41 {"@objective-c-header",
42 "%{E|M|MM:cc1obj -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}\
43 %(cpp_options) %(cpp_debug_options)}\
44 %{!E:%{!M:%{!MM:\
45 %{traditional|ftraditional|traditional-cpp:\
46 %eGNU Objective C no longer supports traditional compilation}\
47 %{save-temps|no-integrated-cpp:cc1obj -E %(cpp_options) -o %{save-temps:%b.mi} %{!save-temps:%g.mi} \n\
48 cc1obj -fpreprocessed %b.mi %(cc1_options) %{print-objc-runtime-info} %{gen-decls}\
49 -o %g.s %{!o*:--output-pch=%i.gch}\
50 %W{o*:--output-pch=%*}%V}\
51 %{!save-temps:%{!no-integrated-cpp:\
52 cc1obj %(cpp_unique_options) %(cc1_options) %{print-objc-runtime-info} %{gen-decls}\
53 -o %g.s %{!o*:--output-pch=%i.gch}\
54 %W{o*:--output-pch=%*}%V}}}}}", 0, 0, 0},