]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Remove duplicate -lgcov [PR114034]
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 31 Mar 2024 10:22:58 +0000 (11:22 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Mon, 22 Apr 2024 18:51:02 +0000 (19:51 +0100)
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)

gcc/testsuite/g++.dg/gcov/gcov-dump-1.C
gcc/testsuite/g++.dg/gcov/gcov-dump-2.C

index f0e81e9b042549b028581f9ab50632a3d31c8e93..774a7269ff2c53b969fb2aa5eb814960d65a6f59 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-fprofile-generate -ftest-coverage -lgcov" } */
+/* { dg-options "-fprofile-generate -ftest-coverage " } */
 /* { dg-do run { target native } } */
 
 int value;
index 6234a81a58687204c4bbf86f2f8696a3f470c01c..e748989d2c0b478a3b1f7ef0e0d3b9638fb93d15 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-fprofile-generate -ftest-coverage -lgcov" } */
+/* { dg-options "-fprofile-generate -ftest-coverage " } */
 /* { dg-do run { target native } } */
 
 int value;