From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1147) id 1B9E13858C98; Mon, 26 Feb 2024 09:42:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1B9E13858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708940572; bh=ednIoHJk2+cSXr7gHi5AmOAbp7hfaT80m7qbPt/ZQ2g=; h=From:To:Subject:Date:From; b=WtGp8zm446U5k0kFxQiwwcpMdAFQmanPpwTfrK8nyWOFYmkvuJiiOAiPWISh/7M6B c3cSq/Q4K6cNJR9Z6oipFUI37lrZeI1ROM/Y3VJ5A3UrS8AlXdO7ruI8y5Z/UlmmLl kL6HCT2aHKY+/PR31iSbmb05iANZQYRAv60WTZlg= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Rainer Orth To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-9176] testsuite: xfail gcc.c-torture/compile/pr61159.c on Solaris/x86 with as [PR61159] X-Act-Checkin: gcc X-Git-Author: Rainer Orth X-Git-Refname: refs/heads/master X-Git-Oldrev: 24aa051af7c59f37ec45aea754b48b97d210ea6d X-Git-Newrev: a25d7d1385087e0f43574064db45f1bc7d52f400 Message-Id: <20240226094252.1B9E13858C98@sourceware.org> Date: Mon, 26 Feb 2024 09:42:51 +0000 (GMT) List-Id: https://gcc.gnu.org/g:a25d7d1385087e0f43574064db45f1bc7d52f400 commit r14-9176-ga25d7d1385087e0f43574064db45f1bc7d52f400 Author: Rainer Orth Date: Mon Feb 26 10:42:04 2024 +0100 testsuite: xfail gcc.c-torture/compile/pr61159.c on Solaris/x86 with as [PR61159] 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. 2024-02-24 Rainer Orth gcc/testsuite: PR ipa/61159 * gcc.c-torture/compile/pr61159.c: xfail on Solaris/x86 with as. Diff: --- gcc/testsuite/gcc.c-torture/compile/pr61159.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.c-torture/compile/pr61159.c b/gcc/testsuite/gcc.c-torture/compile/pr61159.c index dadd9c08444a..d2986d463938 100644 --- 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")));