Remove Dwarf2 restriction on EH frame generation
[official-gcc.git] / gcc / objc / lang-specs.h
bloba8411f3ea85c461989cddb1e5e5c4e5cf91d536e
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 -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 {"cpp -lang-objc %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I\
61 %{C:%{!E:%eGNU C does not support -C without using -E}}\
62 %{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
63 -D__OBJC__ %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2\
64 -D__GNUC_PATCHLEVEL__=%v3}\
65 %{ansi:-trigraphs -D__STRICT_ANSI__}\
66 %{!undef:%{!ansi:%p} %P} %{trigraphs}\
67 %c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}\
68 %{ffast-math:-D__FAST_MATH__}\
69 %{traditional} %{ftraditional:-traditional}\
70 %{traditional-cpp:-traditional}\
71 %{fleading-underscore} %{fno-leading-underscore}\
72 %{fshow-column} %{fno-show-column}\
73 %{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\
74 %i %{!M:%{!MM:%{!E:%{!pipe:%g.mi}}}}%{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}} |\n",
75 "%{!M:%{!MM:%{!E:cc1obj %{!pipe:%g.mi} %1 \
76 %{!Q:-quiet} -dumpbase %b.m %{d*} %{m*} %{a*}\
77 %{g*} %{O*} %{W*} %{w} %{pedantic*} %{ansi} \
78 %{traditional} %{v:-version} %{pg:-p} %{p} %{f*} \
79 -lang-objc %{gen-decls} \
80 %{aux-info*} %{Qn:-fno-ident}\
81 %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
82 %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
83 %{!S:as %a %Y\
84 %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
85 %{!pipe:%g.s} %A\n }}}}"}
86 #endif /* ! USE_CPPLIB */
88 {".mi", {"@objc-cpp-output"}},
89 {"@objc-cpp-output",
90 {"%{!M:%{!MM:%{!E:cc1obj %i %1 \
91 %{!Q:-quiet} -dumpbase %b.m %{d*} %{m*} %{a*}\
92 %{g*} %{O*} %{W*} %{w} %{pedantic*} %{ansi} \
93 %{traditional} %{v:-version} %{pg:-p} %{p} %{f*} \
94 -lang-objc %{gen-decls} \
95 %{aux-info*} %{Qn:-fno-ident}\
96 %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
97 %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n",
98 "%{!S:as %a %Y\
99 %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
100 %{!pipe:%g.s} %A\n }}}}"}},