This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PCH] searching
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Geoffrey Keating <geoffk at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 25 Aug 2002 17:04:17 +0100
- Subject: Re: [PCH] searching
- References: <200208250046.g7P0k4B23484@remus.sfbay.redhat.com>
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.