From: Torbjörn SVENSSON <[email protected]>
Without the 'dg-require-effective-target fopenmp', we see errors on
aarch64-elf because -pthead is not supported.
OK to backport to gcc-15 and gcc-14?
Thanks,
Christophe
PR rtl-optimization/124454
gcc/testsuite/ChangeLog:
* gcc.dg/pr124454-1.c: Add missing require effective target
fopenmp.
Signed-off-by: Torbjörn SVENSSON <[email protected]>
(cherry picked from commit 9873a35f52487b3dcd2cbbc973d1ea2a4d59dd1a)
---
gcc/testsuite/gcc.dg/pr124454-1.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/testsuite/gcc.dg/pr124454-1.c
b/gcc/testsuite/gcc.dg/pr124454-1.c
index 11c4d803d1b..0f05bc544a3 100644
--- a/gcc/testsuite/gcc.dg/pr124454-1.c
+++ b/gcc/testsuite/gcc.dg/pr124454-1.c
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-require-effective-target fopenmp } */
/* { dg-additional-options "-O3 -fno-forward-propagate -fnon-call-exceptions
-fno-dse -fprofile-generate -fopenmp -finstrument-functions" } */
/* { dg-additional-options "-mno-outline-atomics" { target aarch64*-*-* } } */
--
2.34.1