OSDN Git Service

* Clean up usages of TREE_INT_CST_LOW.
[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         %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\
39         %i %{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}}\n}",
40     "%{!M:%{!MM:%{!E:cc1obj %i %1 \
41                    %{nostdinc*} %{A*} %{I*} %{P} %I\
42                    %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
43                    -D__OBJC__ %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\
44                    -D__GNUC_PATCHLEVEL__=%v3}\
45                    %{!undef:%{!ansi:%p} %P} %{trigraphs}\
46                    %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
47                    %{ffast-math:-D__FAST_MATH__}\
48                    %{!Q:-quiet} -dumpbase %b.m %{d*} %{m*} %{a*}\
49                    %{g*} %{O*} %{W*} %{w} %{pedantic*} %{ansi} \
50                    %{traditional} %{v:-version} %{pg:-p} %{p} %{f*} \
51                    -lang-objc %{gen-decls} \
52                    %{aux-info*} %{Qn:-fno-ident}\
53                    %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
54                    %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
55      %{!S:as %a %Y\
56         %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
57         %{!pipe:%g.s} %A\n }}}}"}
58 #else /* ! USE_CPPLIB */
59    {"cpp -lang-objc %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I\
60         %{C:%{!E:%eGNU C does not support -C without using -E}}\
61         %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
62         -D__OBJC__ %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\
63         -D__GNUC_PATCHLEVEL__=%v3}\
64          %{ansi:-trigraphs -D__STRICT_ANSI__}\
65         %{!undef:%{!ansi:%p} %P} %{trigraphs}\
66         %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
67         %{ffast-math:-D__FAST_MATH__}\
68         %{traditional} %{ftraditional:-traditional}\
69         %{traditional-cpp:-traditional}\
70         %{fleading-underscore} %{fno-leading-underscore}\
71         %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\
72         %i %{!M:%{!MM:%{!E:%{!pipe:%g.mi}}}}%{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}} |\n",
73     "%{!M:%{!MM:%{!E:cc1obj %{!pipe:%g.mi} %1 \
74                    %{!Q:-quiet} -dumpbase %b.m %{d*} %{m*} %{a*}\
75                    %{g*} %{O*} %{W*} %{w} %{pedantic*} %{ansi} \
76                    %{traditional} %{v:-version} %{pg:-p} %{p} %{f*} \
77                    -lang-objc %{gen-decls} \
78                    %{aux-info*} %{Qn:-fno-ident}\
79                    %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
80                    %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
81               %{!S:as %a %Y\
82                       %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
83                       %{!pipe:%g.s} %A\n }}}}"}
84 #endif /* ! USE_CPPLIB */
85   },
86   {".mi", {"@objc-cpp-output"}},
87   {"@objc-cpp-output",
88    {"%{!M:%{!MM:%{!E:cc1obj %i %1 \
89                    %{!Q:-quiet} -dumpbase %b.m %{d*} %{m*} %{a*}\
90                    %{g*} %{O*} %{W*} %{w} %{pedantic*} %{ansi} \
91                    %{traditional} %{v:-version} %{pg:-p} %{p} %{f*} \
92                    -lang-objc %{gen-decls} \
93                    %{aux-info*} %{Qn:-fno-ident}\
94                    %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
95                    %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n",
96     "%{!S:as %a %Y\
97         %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
98         %{!pipe:%g.s} %A\n }}}}"}},