Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / objc / lang-specs.h
blobf6a8f3815d1493dfb8c46072dc65cb531063bea2
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
23 for 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 {"@objective-c-header",
38 "%{E|M|MM:cc1obj -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}\
39 %(cpp_options) %(cpp_debug_options)}\
40 %{!E:%{!M:%{!MM:\
41 %{traditional|ftraditional|traditional-cpp:\
42 %eGNU Objective C no longer supports traditional compilation}\
43 %{save-temps|no-integrated-cpp:cc1obj -E %(cpp_options) -o %{save-temps:%b.mi} %{!save-temps:%g.mi} \n\
44 cc1obj -fpreprocessed %b.mi %(cc1_options) %{print-objc-runtime-info} %{gen-decls}\
45 -o %g.s %{!o*:--output-pch=%i.gch}\
46 %W{o*:--output-pch=%*}%V}\
47 %{!save-temps:%{!no-integrated-cpp:\
48 cc1obj %(cpp_unique_options) %(cc1_options) %{print-objc-runtime-info} %{gen-decls}\
49 -o %g.s %{!o*:--output-pch=%i.gch}\
50 %W{o*:--output-pch=%*}%V}}}}}", 0, 0, 0},
51 {".mi", "@objective-c-cpp-output", 0, 0, 0},
52 {"@objective-c-cpp-output",
53 "%{!M:%{!MM:%{!E:cc1obj -fpreprocessed %i %(cc1_options) %{print-objc-runtime-info} %{gen-decls}\
54 %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0},
55 {"@objc-cpp-output",
56 "%nobjc-cpp-output is deprecated; please use objective-c-cpp-output instead\n\
57 %{!M:%{!MM:%{!E:cc1obj -fpreprocessed %i %(cc1_options) %{print-objc-runtime-info} %{gen-decls}\
58 %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0},