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>
This commit is contained in:
Iain Sandoe 2024-03-31 11:22:58 +01:00
parent ad8e34eaa8
commit 799a056cf8
2 changed files with 2 additions and 2 deletions

View 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;

View 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;