From patchwork Mon Feb 26 09:43:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 86367 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BE1C43858C98 for ; Mon, 26 Feb 2024 09:43:57 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id DBBC13858C5E for ; Mon, 26 Feb 2024 09:43:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DBBC13858C5E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cebitec.uni-bielefeld.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DBBC13858C5E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=129.70.160.84 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708940605; cv=none; b=BaeH0kxEdv7qErBoal+eBj5iKlR3zTQibZKFCxylxdOFHqnL0463xv4tfPyWd+3dljixExRQJ6dSM6CHDvkaEKCTL56S81qIaXz73c9MVMSzy4UGqBjhxIkKtQegOY7EcVm6TEPZ7LCWawYzQd13koz81CFTjVWBdNYsz0nLGKk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708940605; c=relaxed/simple; bh=RO462mZg/a0LkEtIKl2Ym+AZ3bFmeKOBeUf93j0vTPs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=owW8RemQ53Ub5kLZlb3YpvZ6hDa4nG7mMmpe5A3n6yeH+T1t6DPZZAmhjbrxRQCMFZ11TfmDJ0S28MSQ1aL54eHLwBgkN3TctsPmZfIAEe1yFKbMCRbqqIQN/UvnemjfqUESFRSygITHZBUmZb4aZkOSFpQfmL1g0AxLsI8H05w= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost (localhost [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id C1C02BE946 for ; Mon, 26 Feb 2024 10:43:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= cebitec.uni-bielefeld.de; h=content-type:content-type :mime-version:user-agent:message-id:date:date:subject:subject :from:from:received:received; s=20200306; t=1708940601; bh=RO462 mZg/a0LkEtIKl2Ym+AZ3bFmeKOBeUf93j0vTPs=; b=kdK/0mlyGTVxyuCXRQn/d VTBBu9vU/rA9dYSHyk8n8miZf82uAm+oQXCGFuXTYbhb77Gjxprvi/D3fckstJJU uaaUntfEBRk3iXDRt5iR2+RqM4qH1RhuNiSlzp0w3xelRPgVFlY76tWTxDws8Cx8 OCMUJrI3KZBTEFXk3+s45oh6SGCjNd7ENLc/ROlBu1BgsHlMlVYBwR4VgV/eiOAU t9egQI0PljkWhAwqtPWbi1x95Rh+KpSfP5g3glMY4ODHV8Yyi01PLAadFTPl14nJ zgi8N78K33fuyfdYFE1n4G8R+6tmfWbdX5/y96eHXSgGaF+hLpNQsIvOmI0/Ekkc w== X-Virus-Scanned: amavisd-new at cebitec.uni-bielefeld.de Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id dvRRFEd6QJFE for ; Mon, 26 Feb 2024 10:43:21 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p50855b30.dip0.t-ipconnect.de [80.133.91.48]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 3A1C0BECD0 for ; Mon, 26 Feb 2024 10:43:21 +0100 (CET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Subject: [COMMITTED] testsuite: xfail gcc.c-torture/compile/pr61159.c on Solaris/x86 with as [PR61159] Date: Mon, 26 Feb 2024 10:43:20 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (usg-unix-v) MIME-Version: 1.0 X-Spam-Status: No, score=-3789.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, 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-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org gcc.c-torture/compile/pr61159.c currently FAILs on 32 and 64-bit Solaris/x86 with the native assembler: FAIL: gcc.c-torture/compile/pr61159.c -O0 (test for excess errors) FAIL: gcc.c-torture/compile/pr61159.c -O1 (test for excess errors) FAIL: gcc.c-torture/compile/pr61159.c -O2 (test for excess errors) FAIL: gcc.c-torture/compile/pr61159.c -O2 -flto (test for excess errors) FAIL: gcc.c-torture/compile/pr61159.c -O2 -flto -flto-partition=none (test for excess errors) FAIL: gcc.c-torture/compile/pr61159.c -O3 -g (test for excess errors) FAIL: gcc.c-torture/compile/pr61159.c -Os (test for excess errors) Excess errors: Assembler: pr61159.c "/var/tmp//ccRtFPva.s", line 5 : Cannot set a weak symbol to a common symbol This is a bug/limitation in the native assembler. Given that this hasn't seen fixes for a long time, this patch xfails the test. Tested on i386-pc-solaris2.11 (as and gas) and x86_64-pc-linux-gnu. Committed to trunk. Rainer # HG changeset patch # Parent 32a7094d0d8c1c287ab2dce6f79e2ad1530d1113 testsuite: xfail gcc.c-torture/compile/pr61159.c on Solaris/x86 with as [PR61159] diff --git a/gcc/testsuite/gcc.c-torture/compile/pr61159.c b/gcc/testsuite/gcc.c-torture/compile/pr61159.c --- a/gcc/testsuite/gcc.c-torture/compile/pr61159.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr61159.c @@ -1,6 +1,6 @@ /* { dg-require-alias "" } */ /* { dg-require-weak "" } */ -/* { dg-xfail-if "weak alias" { powerpc-ibm-aix* } } */ +/* { dg-xfail-if "weak alias" { powerpc-ibm-aix* || { *86*-*-solaris* && { ! gas } } } } */ static int dummy = 0; extern int foo __attribute__((__weak__, __alias__("dummy")));