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