Remove no_overflow_tree_code
2015-11-07 Tom de Vries <tom@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(-)
@@ -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
@@ -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