0001-testuite-Check-pthread-for-omp-module-testing.patch 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. From c108c54011f6256806d4fe1a653e631fa66dba51 Mon Sep 17 00:00:00 2001
  2. From: Kito Cheng <kito.cheng@sifive.com>
  3. Date: Wed, 19 May 2021 18:06:27 +0800
  4. Subject: [PATCH 01/15] testuite: Check pthread for omp module testing
  5. gcc/testsuite/ChangeLog:
  6. * g++.dg/modules/omp-1_a.C: Check pthread is available.
  7. * g++.dg/modules/omp-1_b.C: Ditto.
  8. * g++.dg/modules/omp-1_c.C: Ditto.
  9. * g++.dg/modules/omp-2_a.C: Ditto.
  10. * g++.dg/modules/omp-2_b.C: Ditto.
  11. ---
  12. gcc/testsuite/g++.dg/modules/omp-1_a.C | 1 +
  13. gcc/testsuite/g++.dg/modules/omp-1_b.C | 1 +
  14. gcc/testsuite/g++.dg/modules/omp-1_c.C | 1 +
  15. gcc/testsuite/g++.dg/modules/omp-2_a.C | 1 +
  16. gcc/testsuite/g++.dg/modules/omp-2_b.C | 1 +
  17. 5 files changed, 5 insertions(+)
  18. diff --git a/gcc/testsuite/g++.dg/modules/omp-1_a.C b/gcc/testsuite/g++.dg/modules/omp-1_a.C
  19. index 722720a0e93..94e1171f03c 100644
  20. --- a/gcc/testsuite/g++.dg/modules/omp-1_a.C
  21. +++ b/gcc/testsuite/g++.dg/modules/omp-1_a.C
  22. @@ -1,4 +1,5 @@
  23. // { dg-additional-options "-fmodules-ts -fopenmp" }
  24. +// { dg-require-effective-target pthread }
  25. export module foo;
  26. // { dg-module-cmi foo }
  27. diff --git a/gcc/testsuite/g++.dg/modules/omp-1_b.C b/gcc/testsuite/g++.dg/modules/omp-1_b.C
  28. index f3f5d92e517..09d97e4ac4e 100644
  29. --- a/gcc/testsuite/g++.dg/modules/omp-1_b.C
  30. +++ b/gcc/testsuite/g++.dg/modules/omp-1_b.C
  31. @@ -1,4 +1,5 @@
  32. // { dg-additional-options "-fmodules-ts -fopenmp" }
  33. +// { dg-require-effective-target pthread }
  34. import foo;
  35. diff --git a/gcc/testsuite/g++.dg/modules/omp-1_c.C b/gcc/testsuite/g++.dg/modules/omp-1_c.C
  36. index f30f6115277..599a5a5d34f 100644
  37. --- a/gcc/testsuite/g++.dg/modules/omp-1_c.C
  38. +++ b/gcc/testsuite/g++.dg/modules/omp-1_c.C
  39. @@ -1,4 +1,5 @@
  40. // { dg-additional-options "-fmodules-ts" }
  41. +// { dg-require-effective-target pthread }
  42. import foo;
  43. diff --git a/gcc/testsuite/g++.dg/modules/omp-2_a.C b/gcc/testsuite/g++.dg/modules/omp-2_a.C
  44. index d2291b6bbe0..b0d4bbc6e8a 100644
  45. --- a/gcc/testsuite/g++.dg/modules/omp-2_a.C
  46. +++ b/gcc/testsuite/g++.dg/modules/omp-2_a.C
  47. @@ -1,4 +1,5 @@
  48. // { dg-additional-options "-fmodules-ts -fopenmp" }
  49. +// { dg-require-effective-target pthread }
  50. export module foo;
  51. // { dg-module-cmi foo }
  52. diff --git a/gcc/testsuite/g++.dg/modules/omp-2_b.C b/gcc/testsuite/g++.dg/modules/omp-2_b.C
  53. index 39f34c70275..aeee4d1561a 100644
  54. --- a/gcc/testsuite/g++.dg/modules/omp-2_b.C
  55. +++ b/gcc/testsuite/g++.dg/modules/omp-2_b.C
  56. @@ -1,4 +1,5 @@
  57. // { dg-additional-options "-fmodules-ts" }
  58. +// { dg-require-effective-target pthread }
  59. import foo;
  60. --
  61. 2.33.1