[gcc r16-1683] ranger-op: Use CFN_ constant instead of plain BUILTIN_ one
Martin Jambor
jamborm@gcc.gnu.org
Wed Jun 25 15:06:05 GMT 2025
https://gcc.gnu.org/g:a73cb702e24b6bc209ca53b0000cfc9cca5d95dd
commit r16-1683-ga73cb702e24b6bc209ca53b0000cfc9cca5d95dd
Author: Martin Jambor <mjambor@suse.cz>
Date: Mon Jun 23 18:21:34 2025 +0200
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 <mjambor@suse.cz>
* gimple-range-op.cc
(gimple_range_op_handler::maybe_builtin_call): Use
CFN_BUILT_IN_ISINF instead of BUILT_IN_ISINF.
Diff:
---
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 90a619714898..c9bc5c0c6b90 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;
More information about the Gcc-cvs
mailing list