public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-11406] testsuite: Remove duplicate -lgcov [PR114034]
@ 2024-04-29 14:19 Iain D Sandoe
  0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2024-04-29 14:19 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:241e10972c916540a085054a1a858c5b2ce82a5a

commit r11-11406-g241e10972c916540a085054a1a858c5b2ce82a5a
Author: Iain Sandoe <iain@sandoe.co.uk>
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 <iain@sandoe.co.uk>
    (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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-29 14:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-29 14:19 [gcc r11-11406] testsuite: Remove duplicate -lgcov [PR114034] Iain D Sandoe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).