From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1698) id E3AAA3858C31; Mon, 29 Apr 2024 14:19:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E3AAA3858C31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714400348; bh=7wynnoktZVHEJqPMpe9JF36sGSzYM8FO6xCew+y1cIk=; h=From:To:Subject:Date:From; b=r7/R8nudpVIy0h1wuqtnlA43+js1Dh/sSJifv+WvLV34heUa0Y31t5jaqplugkfeT RaWpPQ+VUWTSSn4qVmne1x4v+WO0Q8eTLnPqFi2HWrLANI0cl8oOd+0UFi2ltTZ639 lH6m8oM4Agx14qV1bdfms8/fS5rf6UNBoBmOh3aI= 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 r11-11406] testsuite: Remove duplicate -lgcov [PR114034] X-Act-Checkin: gcc X-Git-Author: Iain Sandoe X-Git-Refname: refs/heads/releases/gcc-11 X-Git-Oldrev: 5feeb2ddc93de85dffd7d52119189cd63bccd40f X-Git-Newrev: 241e10972c916540a085054a1a858c5b2ce82a5a Message-Id: <20240429141908.E3AAA3858C31@sourceware.org> Date: Mon, 29 Apr 2024 14:19:08 +0000 (GMT) List-Id: https://gcc.gnu.org/g:241e10972c916540a085054a1a858c5b2ce82a5a commit r11-11406-g241e10972c916540a085054a1a858c5b2ce82a5a Author: Iain Sandoe Date: Sun Mar 31 11:22:58 2024 +0100 testsuite: Remove duplicate -lgcov [PR114034] Duplicate library entries now cause linker warnings with newer linker versions on Darwin which leads to these tests regressing. The library is already added by the test flags so there is no need to put an extra one in the options. PR testsuite/114034 gcc/testsuite/ChangeLog: * g++.dg/gcov/gcov-dump-1.C: Remove extra -lgcov. * g++.dg/gcov/gcov-dump-2.C: Likewise. Signed-off-by: Iain Sandoe (cherry picked from commit 799a056cf804f433ce0050a5a6bf900f7a01ecb1) Diff: --- gcc/testsuite/g++.dg/gcov/gcov-dump-1.C | 2 +- gcc/testsuite/g++.dg/gcov/gcov-dump-2.C | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/g++.dg/gcov/gcov-dump-1.C b/gcc/testsuite/g++.dg/gcov/gcov-dump-1.C index f0e81e9b042..774a7269ff2 100644 --- a/gcc/testsuite/g++.dg/gcov/gcov-dump-1.C +++ b/gcc/testsuite/g++.dg/gcov/gcov-dump-1.C @@ -1,4 +1,4 @@ -/* { dg-options "-fprofile-generate -ftest-coverage -lgcov" } */ +/* { dg-options "-fprofile-generate -ftest-coverage " } */ /* { dg-do run { target native } } */ int value; diff --git a/gcc/testsuite/g++.dg/gcov/gcov-dump-2.C b/gcc/testsuite/g++.dg/gcov/gcov-dump-2.C index 6234a81a586..e748989d2c0 100644 --- a/gcc/testsuite/g++.dg/gcov/gcov-dump-2.C +++ b/gcc/testsuite/g++.dg/gcov/gcov-dump-2.C @@ -1,4 +1,4 @@ -/* { dg-options "-fprofile-generate -ftest-coverage -lgcov" } */ +/* { dg-options "-fprofile-generate -ftest-coverage " } */ /* { dg-do run { target native } } */ int value;