aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJia-Wei Chen <jiawei@iscas.ac.cn>2022-04-19 11:11:24 +0800
committerKito Cheng <kito.cheng@sifive.com>2022-04-28 11:22:39 +0800
commitd5b66a905322262483af5c4ca6cb6676c24e1f3f (patch)
tree9034dde9c829463a709327e8cc65753ce13861c0
parentd1ee29fd7fb972fee141a0e475f780be4253758a (diff)
downloadgcc-d5b66a905322262483af5c4ca6cb6676c24e1f3f.zip
gcc-d5b66a905322262483af5c4ca6cb6676c24e1f3f.tar.gz
gcc-d5b66a905322262483af5c4ca6cb6676c24e1f3f.tar.bz2
testsuite: Skip target not support -pthread [PR104676].
The "ftree-parallelize-loops=" imply -pthread option in gcc/gcc.cc, some target are not support pthread like elf target use newlib, and will get an error: "*-*-elf-gcc: error: unrecognized command-line option '-pthread'" so we add an additional condition "{target pthread}" to make sure the dg-additional-options runs on support targets. gcc/testsuite/ChangeLog PR target/104676 * gcc.dg/torture/pr104676.c: Add "{target pthread}" check.
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr104676.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr104676.c b/gcc/testsuite/gcc.dg/torture/pr104676.c
index 50845bb..0991b78 100644
--- a/gcc/testsuite/gcc.dg/torture/pr104676.c
+++ b/gcc/testsuite/gcc.dg/torture/pr104676.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-additional-options "-ftree-loop-distribution -ftree-parallelize-loops=2" } */
+/* { dg-additional-options "-ftree-loop-distribution -ftree-parallelize-loops=2" { target pthread } } */
struct S {
int f;