]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite, Objective-C: Fix duplicate libobjc cases.
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 25 Jan 2024 20:17:42 +0000 (20:17 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 28 Apr 2024 14:39:22 +0000 (15:39 +0100)
commite07bed1e7f67aebc288e8e220402b6d628d4b443
treeca069bfe413205e27a3cbac716e3ef9be1da187c
parent61d0cd29f9f107bee1d193b75b87d0ebe0766ede
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 <iain@sandoe.co.uk>
(cherry picked from commit 30d9e81c19d69e15b2e9c53e4377879cbf9b0b84)
gcc/testsuite/obj-c++.dg/encode-10.mm
gcc/testsuite/obj-c++.dg/encode-9.mm