On Tue, Jun 21, 2022 at 2:34 AM Dave Blanchard <d...@killthe.net> wrote:
>
> At some point between GCC 9 and GCC 12, the preprocessor started behaving 
> differently. Before if GCC were launched as /lib/cpp or /usr/bin/cpp (I 
> think) it would assume the user wanted to preprocess something and 
> automatically launch in preprocessor mode. Now the behavior has changed and 
> it just acts as the normal compiler. Can someone kindly point me to the patch 
> or commit where this feature was changed, and the rationale for doing so? 
> Thank you.

It still does that for me.

> ~/install/gcc-12/usr/local/bin/cpp t.c
# 0 "t.c"
# 0 "<built-in>"
# 0 "<command-line>"
...

maybe you can be more specific as to how you invoke 'cpp'.  Did you
build gcc yourself?  What
is the 'cpp' you invoke (is it maybe a script or a symlink?)

Richard.

> --
> Dave Blanchard <d...@killthe.net>

Reply via email to