From patchwork Mon Feb 26 09:54:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 206528 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1968020dyb; Mon, 26 Feb 2024 01:54:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWitjT9R2p8iYxrXl2gabQ0e2KApU2hDRPqW42E+GO55/8Npj0yTDZB5/oH2sfR+WI2r+s74w1//pvObJVYxJONkD7FRA== X-Google-Smtp-Source: AGHT+IFRYPtyBrIkhu103OIxXJ7U7zPW1nMnqihRojzqctrPkH3dlUU8LqQBhQpsDPpL55K80Jpv X-Received: by 2002:a0c:c984:0:b0:68f:f08e:b651 with SMTP id b4-20020a0cc984000000b0068ff08eb651mr6564827qvk.3.1708941293214; Mon, 26 Feb 2024 01:54:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708941293; cv=pass; d=google.com; s=arc-20160816; b=q1+ucCQbEzTyRpIg7tM0YaoJCM/ZezGmaIS/zbaPKVOxqR/ev4IhBZyAAGLP7iZXEJ 4rok/DSk63h63J00U0nKYhTu0poOoGwIViF+kbc+cyYdOagPLvrMXNzQgTVRTVk1QUmK duQsgVeRehdS3hqTBXdE95f1BLoNOExszmvP4O5N9CCySOjfW4WPRTvgCOwsr7hZvE8r iGbLp2DhjBxWEbpj+PJOWMaTxU3KpmG+XqRnqbC63jV+JdXsRreA0Uyie/Y2Lw8yc+lA dYAPvNnsCc9BPPSTP3uQwbVI5t2qkcjBDldxyw+kQpx6qITiDP3YadYUe1iJItUgksbM TeGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :message-id:date:subject:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=GFPgEHdq9wUrEaXvyZ55Kh3pA/Tx750V7L1UvPk61Bo=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=N/KBW/sKwf9q7jXP2wc6YNLXXxXE31X51FnMUqy6V5vFvtPLrBxaOP1wvU5u5uwF2V GycGcec3epBjSv86wGxRxeeso18cKFrDmO9nOz34yJQ1JD92hJa97gMeGD4P1JxVe9Kd qMXnFRXSIfZDXIYy9YsA7o73+T1lMbpnH8P6lsW+4z3NvdzrFqq/9xNq28KznpG+EjkN tcGJpHXj3jXAc5LSUIxtNVWsKN4j4LcXNyBqnnmd7i66RFPc0bD/WPZWOHfuApg0b8Ii T+oXiesc943ZdbkwMM18PdnaRwbIGzOrSFsC3CzGdPnBE44zk75ifZNQBVjY6fDVTa/T Dz1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cebitec.uni-bielefeld.de header.s=20200306 header.b=O9fZxnH4; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id q14-20020a056214194e00b0068fb883d21bsi4697779qvk.271.2024.02.26.01.54.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 01:54:53 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@cebitec.uni-bielefeld.de header.s=20200306 header.b=O9fZxnH4; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D27A93858C55 for ; Mon, 26 Feb 2024 09:54:52 +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 441D73858C55 for ; Mon, 26 Feb 2024 09:54:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 441D73858C55 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 441D73858C55 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=1708941246; cv=none; b=fGVl2tdpXfQolorkpud1TOBrTC9wFXLIdTNBulS+WSsfqosRIpvvvOuLEwboOwh4hzAK+DxmZB1vv6L/7ugzPUG2H3Q4SGauDuJZXtB1FttHwc0+FK19PYmhdTfhrVtmZqczeuHkwiTsDzPgfvqXLhdqjQQ4mD1AwxEo7BnXKG4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708941246; c=relaxed/simple; bh=TGZkjynhTzptRV5HZmgBXPswN+6vbVPEYuQnBh4aRSE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Evml33+znbF2IrEJYVdMGNZU0BUDZBccsAYuxptJIQmtE+XQM2uqTxP3p6CwPKPF1e0ulClHvbCp7+f2IQ/wpa2443qukFUBqL9ZS5GXEdX0YzD7gfTpwJZ6Xbuetf4bqVZ/Is6IsxkP+PM/EYqElnV1Ok4xlm8PsdCXrjlFiRk= 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 2F4E9BF09E for ; Mon, 26 Feb 2024 10:54:03 +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=1708941242; bh=TGZkj ynhTzptRV5HZmgBXPswN+6vbVPEYuQnBh4aRSE=; b=O9fZxnH4neoGsyAyobjum JJl/6GKiL2tJ1jv2RdWr4AA0/AuzZiCQR56VQ/fkd4wCavaim/NlyYhYm50mpDIt isMpjT8RScKMIPfpmWSFbQVcp5jzqOzGDzLF5OlWxBF7BXZyKMGvJVa59UIn3fn1 0NsFLy+tDlzbPh0syjKALmlKtBl7Mdn/onIMxc5Wi16yfgoahRUXB+/3GfLG0lw+ 9mtgXVG2ECqcvauhE5QeAJlEYhtkUvBnRLn8lva5PbCHZWu7hvSf0y7GLFIgV5S7 TwEwMCfyoHGO/j2eWe62/ZpD7UuHRdQXmGuaW+H85YhD5N0qV1JMUXhbET6nvfZO A== 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 ESNzLj2m6mnx for ; Mon, 26 Feb 2024 10:54:02 +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 C255DBEE2C for ; Mon, 26 Feb 2024 10:54:02 +0100 (CET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Subject: [COMMITTED] testsuite: Fix gcc.dg/attr-weakref-1.c on Solaris/x86 with as [PR70582] Date: Mon, 26 Feb 2024 10:54:02 +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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791954825696398872 X-GMAIL-MSGID: 1791954825696398872 gcc.dg/attr-weakref-1.c FAILs on 32 and 64-bit Solaris/x86 with the native assembler: FAIL: gcc.dg/attr-weakref-1.c (test for excess errors) UNRESOLVED: gcc.dg/attr-weakref-1.c compilation failed to produce executable Excess errors: Assembler: attr-weakref-1.c "/var/tmp//ccUSaysF.s", line 171 : Multiply defined symbol: "Wv3a" This is a bug in the native as, which isn't seeing fixes recently. Since only a single subtest is affected, this patch omits that one. Tested on i386-pc-solaris2.11 (as and gas) and x86_64-pc-linux-gnu. Committed to trunk. Rainer # HG changeset patch # Parent c2e97b9d632bb04de7c4c87d39b7e813f640f9f9 testsuite: Fix gcc.dg/attr-weakref-1.c on Solaris/x86 with as [PR70582] diff --git a/gcc/testsuite/gcc.dg/attr-weakref-1.c b/gcc/testsuite/gcc.dg/attr-weakref-1.c --- a/gcc/testsuite/gcc.dg/attr-weakref-1.c +++ b/gcc/testsuite/gcc.dg/attr-weakref-1.c @@ -14,6 +14,8 @@ // { dg-options "-O2" } // { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } // { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } } +// One subtest doesn't assemble with the Solaris/x86 as (PR ipa/70582) +// { dg-additional-options "-DSOLARIS_X86_AS" { target { *86*-*-solaris2* && { ! gas } } } } // { dg-additional-sources "attr-weakref-1a.c" } // Copyright 2005 Free Software Foundation, Inc. @@ -46,9 +48,11 @@ vtype gv2; static vtype Wv2a __attribute__((weakref ("gv2"))); static vtype *pv2a USED = &Wv2a; +#if !defined SOLARIS_X86_AS static vtype lv3; static vtype Wv3a __attribute__((weakref ("lv3"))); static vtype *pv3a USED = &Wv3a; +#endif extern vtype uv4; static vtype Wv4a __attribute__((weakref ("uv4"))); @@ -192,7 +196,9 @@ extern ftype wf14 __attribute__((weak)); int main () { chk (!pv1a); chk (pv2a); +#if !defined(SOLARIS_X86_AS) chk (pv3a); +#endif chk (pv4a); chk (pv4); chk (pv5a);