config.gcc: Reorganize --with-cpu section.
[official-gcc.git] / gcc / objc / lang-specs.h
blob7c784204f86c7ce90d6def3d544af33a0982dfee
1 /* Definitions for specs for Objective-C.
2 Copyright (C) 1998, 1999, 2002, 2002, 2003
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)
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 COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 /* This is the contribution to the `default_compilers' array in gcc.c for
23 objc. */
25 {".m", "@objective-c", 0},
26 {"@objective-c",
27 "%{E|M|MM:%(trad_capable_cpp)\
28 -lang-objc %(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) %{gen-decls}}\
34 %{!save-temps:%{!no-integrated-cpp:\
35 cc1obj %(cpp_unique_options) %(cc1_options) %{gen-decls}}}\
36 %{!fsyntax-only:%(invoke_as)}}}}", 0},
37 {".mi", "@objc-cpp-output", 0},
38 {"@objc-cpp-output",
39 "%{!M:%{!MM:%{!E:cc1obj -fpreprocessed %i %(cc1_options) %{gen-decls}\
40 %{!fsyntax-only:%(invoke_as)}}}}", 0},
41 {"@objective-c-header",
42 "%{E|M|MM:%(trad_capable_cpp)\
43 -lang-objc %(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) %{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) %{gen-decls}\
53 -o %g.s %{!o*:--output-pch=%i.gch}\
54 %W{o*:--output-pch=%*}%V}}}}}", 0},