0003-testuite-Check-pthread-for-omp-module-testing.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From d0a7ad164b60ddc34e9705c1e9225510345e5208 Mon Sep 17 00:00:00 2001
  2. From: Kito Cheng <kito.cheng@sifive.com>
  3. Date: Mon, 21 Jun 2021 21:19:38 +0800
  4. Subject: [PATCH 03/15] testuite: Check pthread for omp module testing
  5. ---
  6. gcc/testsuite/g++.dg/modules/omp-1_a.C | 2 +-
  7. gcc/testsuite/g++.dg/modules/omp-2_a.C | 2 +-
  8. 2 files changed, 2 insertions(+), 2 deletions(-)
  9. diff --git a/gcc/testsuite/g++.dg/modules/omp-1_a.C b/gcc/testsuite/g++.dg/modules/omp-1_a.C
  10. index 94e1171f03c..7ddb776d6a1 100644
  11. --- a/gcc/testsuite/g++.dg/modules/omp-1_a.C
  12. +++ b/gcc/testsuite/g++.dg/modules/omp-1_a.C
  13. @@ -2,7 +2,7 @@
  14. // { dg-require-effective-target pthread }
  15. export module foo;
  16. -// { dg-module-cmi foo }
  17. +// { dg-module-cmi foo { target pthread } }
  18. export inline void frob (unsigned (&ary)[64])
  19. {
  20. diff --git a/gcc/testsuite/g++.dg/modules/omp-2_a.C b/gcc/testsuite/g++.dg/modules/omp-2_a.C
  21. index b0d4bbc6e8a..e030ac7acf7 100644
  22. --- a/gcc/testsuite/g++.dg/modules/omp-2_a.C
  23. +++ b/gcc/testsuite/g++.dg/modules/omp-2_a.C
  24. @@ -2,7 +2,7 @@
  25. // { dg-require-effective-target pthread }
  26. export module foo;
  27. -// { dg-module-cmi foo }
  28. +// { dg-module-cmi foo { target pthread } }
  29. // The OpenMPness doesn't escape to the interface.
  30. export void frob (unsigned (&ary)[64])
  31. --
  32. 2.33.1