From 7bde4c3dcdecac82e080731fc8bb362e6c024628 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Fri, 19 May 2023 16:20:23 +0000 Subject: Move fold_single_bit_test to expr.cc from fold-const.cc This is part 1 of N patch set that will change the expansion of `(A & C) != 0` from using trees to directly expanding so later on we can do some cost analysis. Since the only user of fold_single_bit_test is now expand, move it to there. gcc/ChangeLog: * fold-const.cc (fold_single_bit_test_into_sign_test): Move to expr.cc. (fold_single_bit_test): Likewise. * expr.cc (fold_single_bit_test_into_sign_test): Move from fold-const.cc (fold_single_bit_test): Likewise and make static. * fold-const.h (fold_single_bit_test): Remove declaration. --- gcc/fold-const.h | 1 - 1 file changed, 1 deletion(-) (limited to 'gcc/fold-const.h') diff --git a/gcc/fold-const.h b/gcc/fold-const.h index b828bad..24c50fc 100644 --- a/gcc/fold-const.h +++ b/gcc/fold-const.h @@ -92,7 +92,6 @@ extern bool fold_convertible_p (const_tree, const_tree); #define fold_convert(T1,T2)\ fold_convert_loc (UNKNOWN_LOCATION, T1, T2) extern tree fold_convert_loc (location_t, tree, tree); -extern tree fold_single_bit_test (location_t, enum tree_code, tree, tree, tree); extern tree fold_ignored_result (tree); extern tree fold_abs_const (tree, tree); extern tree fold_indirect_ref_1 (location_t, tree, tree); -- cgit v1.1