From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) by sourceware.org (Postfix) with ESMTPS id 8002C386C597 for ; Tue, 21 Jun 2022 07:28:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8002C386C597 Received: by mail-qv1-xf2a.google.com with SMTP id 43so19139759qvb.3 for ; Tue, 21 Jun 2022 00:28:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=RZRE7HhO25sw0twyhghuV1UewnHX5qFaCN63yMiISFo=; b=MK8IcgbvWnpLU5W5vQkz2vXdeKuPuxvduiVhtFE+OTS+Yec/PYU0fU3Uq0gBwkmWWi bvNhe9Mg89YqcRBmFRghViO6UmwzSQqgyR/9e5HhIUS5Gp6gFl270YxnE9zHVCi6e9jD 9790V/hl5rMnpBMgry1xw/mQKic8b1O/TFLUIXyIv5ndcR4JCym2+VWYqi4hNkh/tHBY gkp59jUeZuY+BFVFQklL/eGzDGZMoDlSoIc3K480667bNUJK3leYhOJJ1mfBb6XDfnGe /a6N7H6cKrfQxPO9E7FwScOhP9MzDXohbblC8hIwX6C0qp9IhKG3zv8ZbrwmUD6Khivl O32w== X-Gm-Message-State: AJIora/HF5vNghnDr+W/XflqKtXQkajW1uH2nfmbSsCJD0xV580Q0/RH MspbEwg8ZczGEg0G3wxWqQPRSQurPPi3qWnRe5Ql/bTqN88= X-Google-Smtp-Source: AGRyM1sODkdZcWuZZI6yeOJVa1m8wexxuXa7eqzkKarbl7FTJ1EgLUaZMlXMLABE/AGJtAj6typ0NRcVQQayORJXcog= X-Received: by 2002:a05:6214:4117:b0:467:cc51:3f4d with SMTP id kc23-20020a056214411700b00467cc513f4dmr21794400qvb.40.1655796491860; Tue, 21 Jun 2022 00:28:11 -0700 (PDT) MIME-Version: 1.0 References: <20220620193418.37581569f8a43bbaded229e6@killthe.net> In-Reply-To: <20220620193418.37581569f8a43bbaded229e6@killthe.net> From: Richard Biener Date: Tue, 21 Jun 2022 09:28:00 +0200 Message-ID: Subject: Re: Change in preprocessor behavior To: Dave Blanchard Cc: GCC Development Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2022 07:28:13 -0000 On Tue, Jun 21, 2022 at 2:34 AM Dave Blanchard 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 th= ink) it would assume the user wanted to preprocess something and automatica= lly launch in preprocessor mode. Now the behavior has changed and it just a= cts as the normal compiler. Can someone kindly point me to the patch or com= mit where this feature was changed, and the rationale for doing so? Thank y= ou. It still does that for me. > ~/install/gcc-12/usr/local/bin/cpp t.c # 0 "t.c" # 0 "" # 0 "" ... 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