https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89023

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-01-24
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to sandra from comment #0)
> Is there some reason this test is conditionalized differently than, say, 
> 28_regex/headers/regex/parallel_mode.cc ??  That one is properly recognized
> as unsupported on this target.

That's the same header :-)

I think it should probably be the same as
25_algorithms/headers/algorithm/algorithm_parallel_mode.cc i.e.

// { dg-require-parallel-mode "" }
// { dg-options "-D_GLIBCXX_PARALLEL -fopenmp" { target *-*-* } }

(Although that will mean it almost never gets tested, as nobody runs make
check-parallel routinely ... not that it really matters, as nobody uses
parallel mode either, and it will be deprecated soon).

> Also, the underlying failure seems related to pr35887.  Why is libstdc++
> even installing headers that depend on omp.h with --disable-libgomp?

Probably because it was easier that way. They only depend on omp.h if you
explicitly request it by defining _GLIBCXX_PARALLEL, and if you do that without
libgomp that's your fault. The test that does that needs to be fixed.

Reply via email to