1 |
717 |
jeremybenn |
/* Definitions for specs for Objective-C.
|
2 |
|
|
Copyright (C) 1998, 1999, 2002, 2002, 2003, 2005, 2007, 2010, 2011
|
3 |
|
|
Free Software Foundation, Inc.
|
4 |
|
|
|
5 |
|
|
This file is part of GCC.
|
6 |
|
|
|
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.
|
11 |
|
|
|
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.
|
16 |
|
|
|
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/>. */
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
/* This is the contribution to the `default_compilers' array in gcc.c
|
23 |
|
|
for objc. */
|
24 |
|
|
|
25 |
|
|
{".m", "@objective-c", 0, 0, 0},
|
26 |
|
|
{"@objective-c",
|
27 |
|
|
"%{E|M|MM:cc1obj -E %{traditional|traditional-cpp:-traditional-cpp}\
|
28 |
|
|
%(cpp_options) %(cpp_debug_options)}\
|
29 |
|
|
%{!E:%{!M:%{!MM:\
|
30 |
|
|
%{traditional|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|traditional-cpp:-traditional-cpp}\
|
39 |
|
|
%(cpp_options) %(cpp_debug_options)}\
|
40 |
|
|
%{!E:%{!M:%{!MM:\
|
41 |
|
|
%{traditional|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},
|