]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Test for flag_parallelize_loops > 1
authorTom de Vries <tom@codesourcery.com>
Mon, 22 Jun 2015 16:26:08 +0000 (16:26 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Mon, 22 Jun 2015 16:26:08 +0000 (16:26 +0000)
2015-06-22  Tom de Vries  <tom@codesourcery.com>

* builtins.def (DEF_GOMP_BUILTIN): Test
'flag_tree_parallelize_loops > 1' instead of
'flag_tree_parallelize_loops'.  Test flag_cilkplus.

From-SVN: r224745

gcc/ChangeLog
gcc/builtins.def

index 0817d2444cb289992d1d83dccd36649b79af6976..4b35cb2c3e9d1bee650be70a0214b6dc13710edb 100644 (file)
@@ -1,3 +1,9 @@
+2015-06-22  Tom de Vries  <tom@codesourcery.com>
+
+       * builtins.def (DEF_GOMP_BUILTIN): Test
+       'flag_tree_parallelize_loops > 1' instead of
+       'flag_tree_parallelize_loops'.  Test flag_cilkplus.
+
 2015-06-22  Tom de Vries  <tom@codesourcery.com>
 
        * dominance.c (calculate_dominance_info): Verify dominators if
index 55ce9f6daa0fe9328a6f7d1ea4e0be260d496a51..80e4a9cab6553821b0ac58d6dcb998b96990338d 100644 (file)
@@ -182,7 +182,9 @@ along with GCC; see the file COPYING3.  If not see
 #define DEF_GOMP_BUILTIN(ENUM, NAME, TYPE, ATTRS) \
   DEF_BUILTIN (ENUM, "__builtin_" NAME, BUILT_IN_NORMAL, TYPE, TYPE,    \
                false, true, true, ATTRS, false, \
-              (flag_openmp || flag_tree_parallelize_loops \
+              (flag_openmp \
+               || flag_tree_parallelize_loops > 1 \
+               || flag_cilkplus \
                || flag_offload_abi != OFFLOAD_ABI_UNSET))
 
 /* Builtin used by implementation of Cilk Plus.  Most of these are decomposed