From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id 0E36D38582A5 for ; Tue, 21 Jun 2022 19:35:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0E36D38582A5 Received: by mail-wr1-x429.google.com with SMTP id i10so16584215wrc.0 for ; Tue, 21 Jun 2022 12:35:18 -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; bh=BZzg8+wttVVocUN22Qq+Toc8WlcUNmft+evjkjNBPIY=; b=quq/QXj6yqX8Tj34QqZ9a+v8IpOPB0VFMhcr6C26nXUC/Fe+485gZlRQ2h6k8ARG9i r1ozsku/V5a7bnHpflnxzOg4IaOS2kKsmWxM0to+xYnfpwVePF/hQxUvMIEwawKZp5ip 812qCiN9o/TW0V3LSpIr8OT9xhFC8ZPvLV5v49qto/np0Bgwz7OuJPrZpnEwxiOvGr0x KqcFcgwMfkBRYWgCNsMxwYQuPMcTH10EnjoaHRfBnEB+NZcUeKJyOOS/A/yuFf2UhDk8 4+YjbwOG+cu/3j+Ck46YeyTWxePCl3832Fgl4fEqCN/Dkdn2/duLqykEAfkqhClmt5OS ZGGQ== X-Gm-Message-State: AJIora9bjzHN2SA8nZYJasb124QIi8HcXKqKl0ZxwYUArbo5dpfW0pxR LBZ81faXrk44v0XfgMcAbJbLB8AjaU/9/4Qr6O0= X-Google-Smtp-Source: AGRyM1s4eolFDbW9L5Xhu0sakI1W3EZ13wnVDYxEN0tNjYpdUFrT1TlatD1viqm46WdYrai2wGBWIKW6ZOvjtlbCknc= X-Received: by 2002:a05:6000:1847:b0:218:4336:5590 with SMTP id c7-20020a056000184700b0021843365590mr29609436wri.511.1655840117718; Tue, 21 Jun 2022 12:35:17 -0700 (PDT) MIME-Version: 1.0 References: <25266.7279.168888.944211@thutt-l01.ddns.vmware.com> In-Reply-To: <25266.7279.168888.944211@thutt-l01.ddns.vmware.com> From: Jonathan Wakely Date: Tue, 21 Jun 2022 20:35:07 +0100 Message-ID: Subject: Re: Narrowing down preprocessor-related potential defect To: thutt Cc: "gcc@gcc.gnu.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.1 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 19:35:20 -0000 On Tue, 21 Jun 2022 at 20:31, thutt--- via Gcc wrote: > I am here to solicit ideas on how to further narrow this this > down. Is there any undocumented option that I can use to cause the > standalone preprocessor to produce output identical to input? > Note that '-traditional-cpp' does not work because some of the code > is not recognized (variadic macros, for example). This seems off-topic for the gcc mailing list. It belongs on the gcc-help list. Have you tried not using a standalone preprocessor? The usual approach is to add -save-temps to the gcc invocation, so it leaves the preprocessed output in a separate .i file. N.B. it's a warning, not an error. You told GCC to turn that warning into an error.