From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 141043858C56 for ; Mon, 28 Mar 2022 06:34:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 141043858C56 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id AB00A210E3; Mon, 28 Mar 2022 06:34:15 +0000 (UTC) Received: from murzim.suse.de (murzim.suse.de [10.160.4.192]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 956A0A3B82; Mon, 28 Mar 2022 06:34:15 +0000 (UTC) Date: Mon, 28 Mar 2022 08:34:15 +0200 (CEST) From: Richard Biener To: FX cc: gcc-patches@gcc.gnu.org, Iain Sandoe Subject: Re: [PATCH] middle-end/100786 - constant folding from incompatible alias In-Reply-To: <00C2A5E0-35E0-4BEF-9780-69ADB0731F3F@gmail.com> Message-ID: References: <00C2A5E0-35E0-4BEF-9780-69ADB0731F3F@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2022 06:34:18 -0000 On Sat, 26 Mar 2022, FX wrote: > Hi Richard, > > The patch for PR100786 introduced a testcase that systematically fails on darwin: > > FAIL: gcc.dg/torture/pr100786.c -O0 (test for excess errors) > FAIL: gcc.dg/torture/pr100786.c -O1 (test for excess errors) > FAIL: gcc.dg/torture/pr100786.c -O2 (test for excess errors) > FAIL: gcc.dg/torture/pr100786.c -O2 -flto (test for excess errors) > FAIL: gcc.dg/torture/pr100786.c -O2 -flto -flto-partition=none (test for excess errors) > FAIL: gcc.dg/torture/pr100786.c -O3 -g (test for excess errors) > FAIL: gcc.dg/torture/pr100786.c -Os (test for excess errors) > > see https://gcc.gnu.org/pipermail/gcc-testresults/2022-March/757882.html > > because > > pr100786.c:4:12: error: only weak aliases are supported in this configuration > 4 | extern int b __attribute__((alias("a"))); > | ^ > pr100786.c:8:15: error: only weak aliases are supported in this configuration > 8 | extern double b2 __attribute__((alias("a2"))); > | ^~ I'll add /* { dg-require-alias "" } */ Richard.