From 71819f4573a345d493f874c3573427d2b9596706 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Thu, 3 Dec 2015 10:16:07 +0000 Subject: [PATCH] Guard isl_ast_op_zdiv_r usage with HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 2015-12-03 Tom de Vries * graphite-isl-ast-to-gimple.c (binary_op_to_tree) (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS. From-SVN: r231223 --- gcc/ChangeLog | 6 ++++++ gcc/graphite-isl-ast-to-gimple.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7989fd8420a..35554453267 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-12-03 Tom de Vries + + * graphite-isl-ast-to-gimple.c (binary_op_to_tree) + (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with + HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS. + 2015-12-03 Richard Biener PR tree-optimization/67800 diff --git a/gcc/graphite-isl-ast-to-gimple.c b/gcc/graphite-isl-ast-to-gimple.c index 06a206209d9..20eb80f52d4 100644 --- a/gcc/graphite-isl-ast-to-gimple.c +++ b/gcc/graphite-isl-ast-to-gimple.c @@ -588,7 +588,9 @@ binary_op_to_tree (tree type, __isl_take isl_ast_expr *expr, ivs_params &ip) } return fold_build2 (TRUNC_DIV_EXPR, type, tree_lhs_expr, tree_rhs_expr); +#if HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS case isl_ast_op_zdiv_r: +#endif case isl_ast_op_pdiv_r: /* As ISL operates on arbitrary precision numbers, we may end up with division by 2^64 that is folded to 0. */ @@ -759,7 +761,9 @@ gcc_expression_from_isl_expr_op (tree type, __isl_take isl_ast_expr *expr, case isl_ast_op_pdiv_q: case isl_ast_op_pdiv_r: case isl_ast_op_fdiv_q: +#if HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS case isl_ast_op_zdiv_r: +#endif case isl_ast_op_and: case isl_ast_op_or: case isl_ast_op_eq: -- 2.30.2