OSDN Git Service

* gcc.c (C specs [!USE_CPPLIB]): Invoke tradcpp if any of
[pf3gnuchains/gcc-fork.git] / gcc / objc / lang-specs.h
1 /* Definitions for specs for Objective-C.
2    Copyright (C) 1998, 1999 Free Software Foundation, Inc.
3
4 This file is part of GNU CC.
5
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.
10
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.
15
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.  */
20
21 /* This is the contribution to the `default_compilers' array in gcc.c for
22    objc.  */
23
24   {".m", {"@objective-c"}},
25   {"@objective-c",
26 #if USE_CPPLIB
27    {"%{E|M|MM:cpp -lang-objc %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I\
28         %{C:%{!E:%eGNU C does not support -C without using -E}}\
29         %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
30         -D__OBJC__ %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\
31         -D__GNUC_PATCHLEVEL__=%v3} %{ansi:-trigraphs -D__STRICT_ANSI__}\
32         %{!undef:%{!ansi:%p} %P} %{trigraphs}\
33         %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
34         %{ffast-math:-D__FAST_MATH__}\
35         %{traditional} %{ftraditional:-traditional}\
36         %{traditional-cpp:-traditional}\
37         %{fleading-underscore} %{fno-leading-underscore}\
38         %{fshow-column} %{fno-show-column}\
39         %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\
40         %i %{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}}\n}",
41     "%{!M:%{!MM:%{!E:cc1obj %i %1 \
42                    %{nostdinc*} %{A*} %{I*} %{P} %I\
43                    %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
44                    -D__OBJC__ %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\
45                    -D__GNUC_PATCHLEVEL__=%v3}\
46                    %{!undef:%{!ansi:%p} %P} %{trigraphs}\
47                    %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
48                    %{ffast-math:-D__FAST_MATH__}\
49                    %{!Q:-quiet} -dumpbase %b.m %{d*} %{m*} %{a*}\
50                    %{g*} %{O*} %{W*} %{w} %{pedantic*} %{ansi} \
51                    %{traditional} %{v:-version} %{pg:-p} %{p} %{f*} \
52                    -lang-objc %{gen-decls} \
53                    %{aux-info*} %{Qn:-fno-ident}\
54                    %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
55                    %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
56      %{!S:as %a %Y\
57         %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
58         %{!pipe:%g.s} %A\n }}}}"}
59 #else /* ! USE_CPPLIB */
60    {"%{traditional|ftraditional|traditional-cpp:trad}cpp -lang-objc \
61         %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I\
62         %{C:%{!E:%eGNU C does not support -C without using -E}}\
63         %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
64         %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 \
65         -D__GNUC_PATCHLEVEL__=%v3}\
66         %{ansi:-trigraphs -D__STRICT_ANSI__}\
67         %{!undef:%{!ansi:%p} %P} %{trigraphs}\
68         %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
69         %{ffast-math:-D__FAST_MATH__}\
70         %{fleading-underscore} %{fno-leading-underscore}\
71         %{fshow-column} %{fno-show-column}\
72         %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\
73         %i %{!M:%{!MM:%{!E:%{!pipe:%g.mi}}}}%{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}} |\n",
74     "%{!M:%{!MM:%{!E:cc1obj %{!pipe:%g.mi} %1 \
75                    %{!Q:-quiet} -dumpbase %b.m %{d*} %{m*} %{a*}\
76                    %{g*} %{O*} %{W*} %{w} %{pedantic*} %{ansi} \
77                    %{traditional} %{v:-version} %{pg:-p} %{p} %{f*} \
78                    -lang-objc %{gen-decls} \
79                    %{aux-info*} %{Qn:-fno-ident}\
80                    %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
81                    %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
82               %{!S:as %a %Y\
83                       %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
84                       %{!pipe:%g.s} %A\n }}}}"}
85 #endif /* ! USE_CPPLIB */
86   },
87   {".mi", {"@objc-cpp-output"}},
88   {"@objc-cpp-output",
89    {"%{!M:%{!MM:%{!E:cc1obj %i %1 \
90                    %{!Q:-quiet} -dumpbase %b.m %{d*} %{m*} %{a*}\
91                    %{g*} %{O*} %{W*} %{w} %{pedantic*} %{ansi} \
92                    %{traditional} %{v:-version} %{pg:-p} %{p} %{f*} \
93                    -lang-objc %{gen-decls} \
94                    %{aux-info*} %{Qn:-fno-ident}\
95                    %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
96                    %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n",
97     "%{!S:as %a %Y\
98         %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
99         %{!pipe:%g.s} %A\n }}}}"}},