From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1698) id 26DE43849AC5; Fri, 19 Apr 2024 13:19:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 26DE43849AC5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713532755; bh=MOafuGgcUrKnzXo8Kze3N7jnF3kBV55jpVDoTXb1f3Y=; h=From:To:Subject:Date:From; b=CRKDvyKgcN7oZqpl5nH1qeJsTcrUa44DfX6+BTkWB5TPuxrusD0hJT4xUutBbmV+R MBIk9byj1nGT11fbBoDXQCifUmv1Hy+X1eJGlX1RJ8lgfto9Z1iPFEsnk9vDlDUAtu AlCCacsPwtHluq/WCUjG2WR2nkQITkF/Y3uUtg6w= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Iain D Sandoe To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-10353] testsuite, Objective-C: Fix duplicate libobjc cases. X-Act-Checkin: gcc X-Git-Author: Iain Sandoe X-Git-Refname: refs/heads/releases/gcc-12 X-Git-Oldrev: 30766064e4f88bca3909ecd9737eeb5f4d36be81 X-Git-Newrev: 04dbdb7347a0b4846311cfce7665b49ea288433f Message-Id: <20240419131915.26DE43849AC5@sourceware.org> Date: Fri, 19 Apr 2024 13:19:15 +0000 (GMT) List-Id: https://gcc.gnu.org/g:04dbdb7347a0b4846311cfce7665b49ea288433f commit r12-10353-g04dbdb7347a0b4846311cfce7665b49ea288433f Author: Iain Sandoe Date: Thu Jan 25 20:17:42 2024 +0000 testsuite, Objective-C: Fix duplicate libobjc cases. Two of the encode testcases include '-lobjc' as their dg-options. Since the library is already appended as part of the generic testsuite handling, this means that two instances appear on the link line leading to spurious warnings from Darwin's new linker. gcc/testsuite/ChangeLog: * obj-c++.dg/encode-10.mm: Remove unneeded '-lobjc' option addition. * obj-c++.dg/encode-9.mm: Likewise. Signed-off-by: Iain Sandoe (cherry picked from commit 30d9e81c19d69e15b2e9c53e4377879cbf9b0b84) Diff: --- gcc/testsuite/obj-c++.dg/encode-10.mm | 1 - gcc/testsuite/obj-c++.dg/encode-9.mm | 1 - 2 files changed, 2 deletions(-) diff --git a/gcc/testsuite/obj-c++.dg/encode-10.mm b/gcc/testsuite/obj-c++.dg/encode-10.mm index 2b3af88dcb1..2477400b7f3 100644 --- a/gcc/testsuite/obj-c++.dg/encode-10.mm +++ b/gcc/testsuite/obj-c++.dg/encode-10.mm @@ -1,5 +1,4 @@ /* Test for @encode in templates. */ -/* { dg-options "-lobjc" } */ /* { dg-do run } */ #include #include diff --git a/gcc/testsuite/obj-c++.dg/encode-9.mm b/gcc/testsuite/obj-c++.dg/encode-9.mm index 6b064dfdc09..4fdb5fa50fb 100644 --- a/gcc/testsuite/obj-c++.dg/encode-9.mm +++ b/gcc/testsuite/obj-c++.dg/encode-9.mm @@ -1,5 +1,4 @@ /* Test than @encode is properly instantiated. */ -/* { dg-options "-lobjc" } */ /* { dg-do run } */ #include