Change in preprocessor behavior

Dave Blanchard dave@killthe.net
Tue Jun 21 12:57:52 GMT 2022


On Tue, 21 Jun 2022 09:28:00 +0200
Richard Biener <richard.guenther@gmail.com> wrote:

> 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.
> 
> 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?)

Oops, it looks like my script had accidentally overwritten 'cpp' with a symlink to gcc. Fixed that and it's working now. Thanks.
 


More information about the Gcc mailing list