Hi, when compiling gimple-range-op.cc, clang issues warning:
gimple-range-op.cc:1419:18: warning: comparison of different enumeration types in switch statement ('combined_fn' and 'built_in_function') [-Wenum-compare-switch] which I hope is harmless, but all other switch cases use CFN_ prefixed constants, so I guess the ISINF case should too. Bootstrapped and tested on x86_64-linx. OK for master? Alternatively, as with all of these clang warning issues, I'm perfectly happy to add an entry to contrib/filter-clang-warnings.py to ignore the warning instead. Thanks, Martin gcc/ChangeLog: 2025-06-23 Martin Jambor <mjam...@suse.cz> * gimple-range-op.cc (gimple_range_op_handler::maybe_builtin_call): Use CFN_BUILT_IN_ISINF instead of BUILT_IN_ISINF. --- gcc/gimple-range-op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/gimple-range-op.cc b/gcc/gimple-range-op.cc index 90a61971489..c9bc5c0c6b9 100644 --- a/gcc/gimple-range-op.cc +++ b/gcc/gimple-range-op.cc @@ -1416,7 +1416,7 @@ gimple_range_op_handler::maybe_builtin_call () m_operator = &op_cfn_signbit; break; - CASE_FLT_FN (BUILT_IN_ISINF): + CASE_FLT_FN (CFN_BUILT_IN_ISINF): m_op1 = gimple_call_arg (call, 0); m_operator = &op_cfn_isinf; break; -- 2.49.0