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: [PCH] searching


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.


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