From: Martin Jambor Date: Mon, 23 Jun 2025 16:21:34 +0000 (+0200) Subject: ranger-op: Use CFN_ constant instead of plain BUILTIN_ one X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a73cb702e24b6bc209ca53b0000cfc9cca5d95dd;p=thirdparty%2Fgcc.git ranger-op: Use CFN_ constant instead of plain BUILTIN_ one 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. gcc/ChangeLog: 2025-06-23 Martin Jambor * gimple-range-op.cc (gimple_range_op_handler::maybe_builtin_call): Use CFN_BUILT_IN_ISINF instead of BUILT_IN_ISINF. --- 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;