This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]