From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2073.outbound.protection.outlook.com [40.107.237.73]) by sourceware.org (Postfix) with ESMTPS id A0BC83857830 for ; Tue, 21 Jun 2022 19:30:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A0BC83857830 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ws8AuntTHlYZ9N5LH29/SSo+MX0t5xjYEduo6+80g5CdW2gomlTveCEXJz0h0eay9v3qxOxu6tYcJm/kM6s2+mdve+ERhSI6RtWgq3xeG4OAWzCIWxo106YXWBgC+HY1t+wqm7vFG0cJ0BtHL2jQV6ytBOpHrX7k2IyI8SVZphwqKnu9/FEng6JERbGVsoS2gNK2NII5rsdgaH3X6XZQCp+mqsarALrMGJcntVkDcjIZsKTzMd9khtYxP5WP2MLnzog5GOutEfQPfgStVobF8u7R1lUaKd9oovUftafHhK0PRJA27L5+wiNPZD2zTJFMS4+Y/PTcbhza7Sg3jPBArw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CqnOxmJwoliD5/8upkihaM0hAsPjtzp1kL+YWr+2yeg=; b=m9fbKajDIbI5Or4BtIihdFoAls2ZbxiaZGGAQfGLRGZ0ApzfyoexqnX1dmP26O+Y9jlTJri5NRmLEtiC/flwEJxLEr1v8ijW6J5qIzcHhGhtPyRijWwyjNn7a1J3Emeg50r9e9VunKDwjtQDNfu+cWl3+iMj3xEP6QqJzV5ocLYxe/oJhHSUnjLP1EQRdrW/MIApibp7+KJIKQS6RWwnq/z+I80TISLjKdyii4O1ecjvUoDtFBKyp4PSgRZMhEByaD/Il77IB8uRmALWR2vwaqNOCYKhaAZyzoW8b/RVkuwLrG9Z40yf5CNLv2gZeB4rvj4ep66MG5GLJX3BaB82vA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vmware.com; dmarc=pass action=none header.from=vmware.com; dkim=pass header.d=vmware.com; arc=none Received: from BN6PR05MB3475.namprd05.prod.outlook.com (2603:10b6:405:3f::19) by DM6PR05MB4635.namprd05.prod.outlook.com (2603:10b6:5:fe::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.9; Tue, 21 Jun 2022 19:30:57 +0000 Received: from BN6PR05MB3475.namprd05.prod.outlook.com ([fe80::fc68:f2aa:a6f2:93ae]) by BN6PR05MB3475.namprd05.prod.outlook.com ([fe80::fc68:f2aa:a6f2:93ae%7]) with mapi id 15.20.5373.013; Tue, 21 Jun 2022 19:30:57 +0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <25266.7279.168888.944211@thutt-l01.ddns.vmware.com> Date: Tue, 21 Jun 2022 12:30:55 -0700 To: gcc@gcc.gnu.org Subject: Narrowing down preprocessor-related potential defect X-Mailer: VM 8.1.1 under 27.2 (x86_64-pc-linux-gnu) Reply-To: "thutt" From: thutt@vmware.com X-PhishMe: ghoti X-ClientProxiedBy: SJ0PR05CA0089.namprd05.prod.outlook.com (2603:10b6:a03:332::34) To BN6PR05MB3475.namprd05.prod.outlook.com (2603:10b6:405:3f::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0311ebcb-f27b-40f0-df1d-08da53bc90fb X-MS-TrafficTypeDiagnostic: DM6PR05MB4635:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9V2cSGPjywN3mTQKr0zvzmTocgXFZhttlvBScKwUfY5+xr7bBOr1VPgForloZSDAanOX6yumu6uPB6aZoAnZIWCky+e4Ij7XnRHTR7CBKnBEfc9euJX9LPDNFZQVrZYieBIeNfY1LTNxUt/pI/njeQVzil6trJ6fvyaZq2EPSmg33N2T0BSRa8eR92kU3RHPK/4BEN+x/zGz0YEfw9Ayhof3+D65/F/aLr20i7tj0HVKO1JJ6QRYoCSSTRISG4khyc9LFcu5CHUXzHpzdNyIpz2/ovngq9kfgckVTw38VJwAEmnf02386nFKvg4No5P7Iy95OEd5Upv+BfnYs4kGTZMoNEQnGtfcsMvSBtRdf9gBpd0X9Cmi0umf/MUyySbgqIkVYjStruzR2VXWjKcKHFewmcXCBCmNLPZDT9tZgsHs6wFUkbFoN5qRHZ/GTpEqw/yFv4iDGNUvptR8Co673B+AIn74NfbETLHKRH1HwIDiieFdn2a/jgGl6EPfxnjK6qi+5fUfzxjHbwqyEUaAswjUSYX7yiywHJqsVan90d5XJo7KaUbRT26DATFiM7YCb0REZSI/T+Mxxoyzm3Z9VMiWOG/CELPFK1n1e5HtPEFa5F1g4eBE+miuuzq2vp4uUHMDVtaW9aOGKyaTUFE+Jw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN6PR05MB3475.namprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(396003)(366004)(136003)(376002)(39860400002)(66946007)(66556008)(66476007)(6486002)(83380400001)(86362001)(6506007)(478600001)(5660300002)(103116003)(8676002)(6916009)(186003)(8936002)(26005)(316002)(6512007)(38100700002)(9686003)(41300700001)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Z2hiMUpVMTRnOWkrMnJvdkdBdHowNnlvZm9kL2kxTE0wZWo2c25jU3hPTkZz?= =?utf-8?B?SzRYTk44YjQ4bXArTWlXZDly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f-8?B?UHo5Y2ZBSDhCc2JoYWtQcHVFUjQ1dzBPdFlOc0lZZ3NpeVFtMHYwamVXSytJ?= =?utf-8?B?ZUhRSVU3a0VFTHRPOGZhNHBSU1h6aERjRXEydmxzWVAvdjk1MmhUbzJNOGFW?= =?utf-8?B?OU5MVHMzQXVSQlJvSnpwdnp2MGluK1hJWENoYkxhMHZ4RXg1Rk5TWDZVSkpQ?= =?utf-8?B?QXBPVTl6MncvdkZjSFFVWlRtNCtUdW10SUlyTTNYRkVxTzNOL29SK2FTbEw1?= =?utf-8?B?ajRoa2NyZ3p1eFZka1hrZXp5Mk5yMEFBTzNVWjhKZHU2ZUlmZW93SFRud2Ez?= =?utf-8?B?MVd2RWlqSVE5T24yNFNBcjBCVm9RVW1aWVJEdno2VHU0L09TR0dLaUJTOWp5?= =?utf-8?B?Si8wWEhFQkpDSEtCZjdwTzV3N2s5aytXSEpRWmtDUGhYRDJ3dDNpRU1ZbHZo?= =?utf-8?B?eU5ER0V1K3kvRll6em5HMUpCNks2ZzdabndmRXFvL3k1U29RMTlCQT09?= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0311ebcb-f27b-40f0-df1d-08da53bc90fb X-MS-Exchange-CrossTenant-AuthSource: BN6PR05MB3475.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2022 19:30:57.8666 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PpnoTHBMtw05viQCJaQOS9vQ0HL0GA2+zOtKflvv/biF0bjKpqCN5o+t1ki881Lryu4j48AXES8TZhpNbe051Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR05MB4635 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no 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:31:01 -0000 Hello folks, I am not subscribed to this mailing list, so please address responses directly to me. I have a program that generates this error: .c: In function =E2=80=98f0=E2=80=99: .c:117:4: error: this =E2=80=98else=E2=80=99 clause does not = guard... [-Werror=3Dmisleading-indentation] 117 | //#endif // | ^~~~ .c:120:2: note: ...this statement, but the latter is misleadi= ngly indented as if it were guarded by the =E2=80=98else=E2=80=99 120 | } | ^ cc1: all warnings being treated as errors for this small snippet of code: void * f0(void *ip6hdr) { if (ip6hdr) { //#ifdef KQD // } else if (0) { //#endif // } else if (ip6hdr) { } else { } return 0; } The failure was induced by a commit to a header file that is not even directly included by this source file. To produce the error the file must include a large swath of header files (some part of FreeBSD, some proprietary). Additionally, the failure is very, very sensitive to the contents of the source & included header files. Normally, to investigate a potential gcc defect, one would preprocess the file and pare down the output. But, preprocessing the input and compiling the preprocessed output causes the failure to evaporate. This is probably because the standalone preprocessor does not produce a verbatim rendering of the input sources. Nevertheless, the preprocessed output, containing proprietary code, is on the order of 80K lines, which is too large (IMHO) to submit in a defect report. Consequently, I need to narrow this down further. But, making progress beyond the current state is challenging because the failure is very sensitive to the contents of the input source, and header files are including other headers to a depth of 13. 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). thutt --