2002-02-19 Philip Blundell <philb@gnu.org>
[official-gcc.git] / gcc / objc / lang-specs.h
blob2abf6337a59b9bfc22afbdc1b574d9d76d306d5c
1 /* Definitions for specs for Objective-C.
2 Copyright (C) 1998, 1999, 2002 Free Software Foundation, Inc.
4 This file is part of GNU CC.
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 /* This is the contribution to the `default_compilers' array in gcc.c for
22 objc. */
24 {".m", "@objective-c", 0},
25 {"@objective-c",
26 /* cc1obj has an integrated ISO C preprocessor. We should invoke the
27 external preprocessor if -save-temps or -traditional is given. */
28 "%{E|M|MM:%(trad_capable_cpp) -lang-objc %{ansi:-std=c89} %(cpp_options)}\
29 %{!E:%{!M:%{!MM:\
30 %{save-temps:%(trad_capable_cpp) -lang-objc %{ansi:-std=c89}\
31 %(cpp_options) %b.mi \n\
32 cc1obj -fpreprocessed %b.mi %(cc1_options) %{gen-decls}}\
33 %{!save-temps:\
34 %{traditional|ftraditional|traditional-cpp:\
35 tradcpp0 -lang-objc %{ansi:-std=c89} %(cpp_options) %{!pipe:%g.mi} |\n\
36 cc1obj -fpreprocessed %{!pipe:%g.mi} %(cc1_options) %{gen-decls}}\
37 %{!traditional:%{!ftraditional:%{!traditional-cpp:\
38 cc1obj %{ansi:-std=c89} %(cpp_unique_options) %(cc1_options) %{gen-decls}}}}}\
39 %{!fsyntax-only:%(invoke_as)}}}}", 0},
40 {".mi", "@objc-cpp-output", 0},
41 {"@objc-cpp-output",
42 "%{!M:%{!MM:%{!E:cc1obj -fpreprocessed %i %(cc1_options) %{gen-decls}\
43 %{!fsyntax-only:%(invoke_as)}}}}", 0},