public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2786] Use CFN_BUILT_IN_CLRSB instead of BUILT_IN_CLRSB in switch.
@ 2021-08-06 11:32 Roger Sayle
0 siblings, 0 replies; only message in thread
From: Roger Sayle @ 2021-08-06 11:32 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:9d8eacc2ae8b9ad6490fc14cbb5127a103847b21
commit r12-2786-g9d8eacc2ae8b9ad6490fc14cbb5127a103847b21
Author: Roger Sayle <roger@nextmovesoftware.com>
Date: Fri Aug 6 12:30:53 2021 +0100
Use CFN_BUILT_IN_CLRSB instead of BUILT_IN_CLRSB in switch.
This patch replaces the use of BUILT_IN_CLRSB with CFN_BUILT_IN_CLRSB
in my recent patch to tree-ssa-phiopt.c. Both of these have identical
values, so there's no change in behavior, but consistent use of the same
enumeration avoids warnings when using clang (or static analysis tools).
2021-08-06 Roger Sayle <roger@nextmovesoftware.com>
gcc/ChangeLog
* tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
Diff:
---
gcc/tree-ssa-phiopt.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gcc/tree-ssa-phiopt.c b/gcc/tree-ssa-phiopt.c
index 66af902e37e..0e339c46afa 100644
--- a/gcc/tree-ssa-phiopt.c
+++ b/gcc/tree-ssa-phiopt.c
@@ -2583,13 +2583,13 @@ cond_removal_in_builtin_zero_pattern (basic_block cond_bb,
}
}
return false;
- case BUILT_IN_CLRSB:
+ case CFN_BUILT_IN_CLRSB:
val = TYPE_PRECISION (integer_type_node) - 1;
break;
- case BUILT_IN_CLRSBL:
+ case CFN_BUILT_IN_CLRSBL:
val = TYPE_PRECISION (long_integer_type_node) - 1;
break;
- case BUILT_IN_CLRSBLL:
+ case CFN_BUILT_IN_CLRSBLL:
val = TYPE_PRECISION (long_long_integer_type_node) - 1;
break;
default:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-06 11:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-06 11:32 [gcc r12-2786] Use CFN_BUILT_IN_CLRSB instead of BUILT_IN_CLRSB in switch Roger Sayle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).