Tested and pushed to master as obvious.

Martin

gcc/testsuite/ChangeLog:

        * c-c++-common/tsan/free_race.c: Remove unnecessary -ldl.
        * c-c++-common/tsan/free_race2.c: Likewise.
---
 gcc/testsuite/c-c++-common/tsan/free_race.c  | 2 +-
 gcc/testsuite/c-c++-common/tsan/free_race2.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/c-c++-common/tsan/free_race.c 
b/gcc/testsuite/c-c++-common/tsan/free_race.c
index 831c23e8859..390ec307dd8 100644
--- a/gcc/testsuite/c-c++-common/tsan/free_race.c
+++ b/gcc/testsuite/c-c++-common/tsan/free_race.c
@@ -1,5 +1,5 @@
 /* { dg-shouldfail "tsan" } */
-/* { dg-additional-options "-ldl -fno-ipa-modref" } */
+/* { dg-additional-options "-fno-ipa-modref" } */
#include <stdlib.h> diff --git a/gcc/testsuite/c-c++-common/tsan/free_race2.c b/gcc/testsuite/c-c++-common/tsan/free_race2.c
index a74d9dc3940..89d12c3175b 100644
--- a/gcc/testsuite/c-c++-common/tsan/free_race2.c
+++ b/gcc/testsuite/c-c++-common/tsan/free_race2.c
@@ -1,5 +1,5 @@
 /* { dg-shouldfail "tsan" } */
-/* { dg-additional-options "-ldl -fno-ipa-modref" } */
+/* { dg-additional-options "-fno-ipa-modref" } */
#include <stdlib.h> --
2.33.1

Reply via email to