Hello,
the gcc.dg/pr49948.c test uses -ftree-parallelize-loops, and therefore
can only run on targets supporting threads. All other similar tests
carry a "dg-require-effective-target pthread" marker, but it is missing
here. This causes failures on (e.g.) spu-elf.
The patch below adds the require-effective-target marker.
Tested on spu-elf, committed to mainline.
Bye,
Ulrich
ChangeLog:
* gcc.dg/pr49948.c: Require pthread effective target.
Index: gcc/testsuite/gcc.dg/pr49948.c
===================================================================
*** gcc/testsuite/gcc.dg/pr49948.c (revision 177409)
--- gcc/testsuite/gcc.dg/pr49948.c (working copy)
***************
*** 1,5 ****
--- 1,6 ----
/* PR tree-optimization/49948 */
/* { dg-do compile } */
+ /* { dg-require-effective-target pthread } */
/* { dg-options "-O3 -ftree-parallelize-loops=2" } */
extern int a, *b;
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
[email protected]