This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Support for objective-C PCH
- From: Devang Patel <dpatel at apple dot com>
- To: Geoffrey Keating <geoffk at apple dot com>
- Cc: Devang Patel <dpatel at apple dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 6 Mar 2003 17:44:11 -0800
- Subject: Re: Support for objective-C PCH
On Thursday, March 6, 2003, at 05:18 PM, Geoffrey Keating wrote:
+ {"@objective-c-header",
+ "%{E|M|MM:%(trad_capable_cpp)\
+ -lang-objc %(cpp_options) %(cpp_debug_options)}\
+ %{!E:%{!M:%{!MM:\
+ %{traditional|ftraditional|traditional-cpp:\
+%eGNU Objective C no longer supports traditional compilation}\
+ %{save-temps:cc1obj -E %(cpp_options) %b.mi \n\
+ cc1obj -fpreprocessed %b.mi %(cc1_options) %{gen-decls}\
+ -o %g.s %{!o*:--output-pch=%i.pch}\
+ %W{o*:--output-pch=%*}%V}\
+ %{!save-temps:\
+ cc1obj %(cpp_unique_options) %(cc1_options) %{gen-decls}\
+ -o %g.s %{!o*:--output-pch=%i.pch}\
+ %W{o*:--output-pch=%*}%V}}}}", 0},
.pch extension ? :-) You can use %(pch) here. Can you add %(dbg_ss) here for symbol separation also ? Thank you.
Objective-C creates few decls like OBJC_SYMS (?) and I had to avoid it during PFE load. It is not part of init, but part of finish_objc. How did you manage it for PCH?
-Devang