1 /* Definitions for specs for Objective-C.
2 Copyright (C) 1998, 1999, 2002, 2002, 2003, 2005
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 2, or (at your option)
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 COPYING. If not, write to
19 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA. */
22 /* This is the contribution to the `default_compilers' array in gcc.c for
25 {".m", "@objective-c", 0, 0, 0},
27 "%{E|M|MM:cc1obj -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}\
28 %(cpp_options) %(cpp_debug_options)}\
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},
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)}\
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},