*-elf toolchains are failing the -ftree-parallelize-loops test pr46111 because using that option unconditionally attempts to link pthreads. I suppose I could define GOMP_SELF_SPECS to "" for my target, but why isn't pthreads only linked in with libgomp is linked?
Testing -ftree-parallelize-loops on targets which don't have threads doesn't make any sense, for C -ftree-parallelize-loops=N tests are all in gcc.dg/autopar/ which is guarded by if ![check_effective_target_pthread] { return } perhaps just the test needs // { dg-require-effective-target pthread } or we need g++.dg/autopar/ which will be guarded similarly.
https://gcc.gnu.org/ml/gcc-cvs/2011-01/msg00063.html : ... Author: uweigand Date: Mon Jan 3 23:16:17 2011 New Revision: 168446 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168446 Log: * g++.dg/torture/pr46111.C: Add dg-require-effective-target pthread. Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/torture/pr46111.C ... Corresponding gcc-patches post: https://gcc.gnu.org/ml/gcc-patches/2011-01/msg00093.html . Marking resolved-fixed.