Hi, this patch removes dead code from gomp-4_0-branch.
Committed to gomp-4_0-branch. Thanks, - Tom
Remove no_overflow_tree_code 2015-11-07 Tom de Vries <t...@codesourcery.com> * tree.c (no_overflow_tree_code): Remove. * tree.h (no_overflow_tree_code): Remove. --- gcc/tree.c | 24 ------------------------ gcc/tree.h | 1 - 2 files changed, 25 deletions(-) diff --git a/gcc/tree.c b/gcc/tree.c index 535c2d1..c7a3313 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -7606,30 +7606,6 @@ associative_tree_code (enum tree_code code) return false; } -/* Return true if CODE represents an tree code that cannot overflow, given - operand type OP_TYPE. Otherwise return false. */ -bool -no_overflow_tree_code (enum tree_code code, tree op_type) -{ - /* For now, just handle associative tree codes. */ - switch (code) - { - case BIT_IOR_EXPR: - case BIT_AND_EXPR: - case BIT_XOR_EXPR: - return true; - - case MIN_EXPR: - case MAX_EXPR: - return (ANY_INTEGRAL_TYPE_P (op_type) - && TREE_CODE (op_type) != COMPLEX_TYPE); - - default: - break; - } - return false; -} - /* Return true if CODE represents a commutative tree code. Otherwise return false. */ bool diff --git a/gcc/tree.h b/gcc/tree.h index 92d6a89..f3e2a48 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -4451,7 +4451,6 @@ extern tree get_file_function_name (const char *); extern tree get_callee_fndecl (const_tree); extern int type_num_arguments (const_tree); extern bool associative_tree_code (enum tree_code); -extern bool no_overflow_tree_code (enum tree_code, tree); extern bool commutative_tree_code (enum tree_code); extern bool commutative_ternary_tree_code (enum tree_code); extern bool operation_can_overflow (enum tree_code); -- 1.9.1