[PCH] searching
Neil Booth
neil@daikokuya.co.uk
Sun Aug 25 09:22:00 GMT 2002
Geoffrey Keating wrote:-
> {".h", "@c-header", 0},
> {"@c-header",
> - "%{E|M|MM:%(trad_capable_cpp) -lang-c %{ansi:-std=c89} %(cpp_options) \
> - %(cpp_debug_options)}\
> - %{!E:cc1 %{ansi:-std=c89} %(cpp_unique_options) %(cc1_options) \
> - -o %g.s %{!o*:--output-pch=%i.pch} %W{^o*:--output-pch=%*}%V} ",
> - 0},
> + /* cc1 has an integrated ISO C preprocessor. We should invoke the
> + external preprocessor if -save-temps is given. */
> + "%{E|M|MM:%(trad_capable_cpp) %{ansi:-std=c89} %(cpp_options)\
> + %(cpp_debug_options)}\
> + %{!E:%{!M:%{!MM:\
> + %{save-temps|traditional-cpp:%(trad_capable_cpp) \
> + %{ansi:-std=c89} %(cpp_options) %b.i \n\
> + cc1 -fpreprocessed %b.i %(cc1_options)\
> + -o %g.s %{!o*:--output-pch=%i.pch}\
> + %W{^o*:--output-pch=%*}%V}\
> + %{!save-temps:%{!traditional-cpp:\
> + cc1 %{ansi:-std=c89} %(cpp_unique_options) %(cc1_options)\
> + -o %g.s %{!o*:--output-pch=%i.pch}\
> + %W{^o*:--output-pch=%*}%V}}}}}", 0},
> {".i", "@cpp-output", 0},
> {"@cpp-output",
> "%{!M:%{!MM:%{!E:cc1 -fpreprocessed %i %(cc1_options) %{!fsyntax-only:%(invoke_as)}}}}", 0},
Geoff, If you've got a fairly recent sync with c-opts.c and gcc.c,
then the %{ansi:-std=c89} stuff should be gone. This might have got
lost in merge conflicts.
Neil.
More information about the Gcc-patches
mailing list