]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ranger-op: Use CFN_ constant instead of plain BUILTIN_ one
authorMartin Jambor <mjambor@suse.cz>
Mon, 23 Jun 2025 16:21:34 +0000 (18:21 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Wed, 25 Jun 2025 15:04:53 +0000 (17:04 +0200)
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  <mjambor@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

index 90a6197148989beae2fdb8873b94ebdbf61bfabc..c9bc5c0c6b902d1fb2ec87d7c5881a683f6c92c6 100644 (file)
@@ -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;