public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-8295] testsuite: Skip target not support -pthread [PR104676].
@ 2022-04-28 3:23 Kito Cheng
0 siblings, 0 replies; only message in thread
From: Kito Cheng @ 2022-04-28 3:23 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:d5b66a905322262483af5c4ca6cb6676c24e1f3f
commit r12-8295-gd5b66a905322262483af5c4ca6cb6676c24e1f3f
Author: Jia-Wei Chen <jiawei@iscas.ac.cn>
Date: Tue Apr 19 11:11:24 2022 +0800
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.
Diff:
---
gcc/testsuite/gcc.dg/torture/pr104676.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.dg/torture/pr104676.c b/gcc/testsuite/gcc.dg/torture/pr104676.c
index 50845bb9e15..0991b78f758 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-28 3:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-28 3:23 [gcc r12-8295] testsuite: Skip target not support -pthread [PR104676] Kito Cheng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).