tsan: remove not needed -ldl in options

Message ID 5a7e1c7f-1e86-603f-c8da-2c96c616dc35@suse.cz
State New
Headers
Series tsan: remove not needed -ldl in options |

Commit Message

Martin Liška Nov. 14, 2021, 1:01 p.m. UTC
  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(-)
  

Comments

Jan Hubicka Nov. 14, 2021, 1:09 p.m. UTC | #1
> 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.

Thank you, I cut&pasted it from the other testcase and forgot to remove
it.  Patch is OK.

Honza
  

Patch

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>