diff options
Diffstat (limited to 'gcc/tree-parloops.c')
-rw-r--r-- | gcc/tree-parloops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c index 5bd9c06..e05cc47 100644 --- a/gcc/tree-parloops.c +++ b/gcc/tree-parloops.c @@ -2836,6 +2836,10 @@ pass_parallelize_loops::execute (function *fun) if (number_of_loops (fun) <= 1) return 0; + tree nthreads = builtin_decl_explicit (BUILT_IN_OMP_GET_NUM_THREADS); + if (nthreads == NULL_TREE) + return 0; + if (parallelize_loops ()) { fun->curr_properties &= ~(PROP_gimple_eomp); |