Change in preprocessor behavior

Richard Biener richard.guenther@gmail.com
Tue Jun 21 07:28:00 GMT 2022


On Tue, Jun 21, 2022 at 2:34 AM Dave Blanchard <dave@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 <dave@killthe.net>


More information about the Gcc mailing list