https://gcc.gnu.org/g:a66ceb34e3df733362f3ee4b56bb504ff5e2a81c
commit a66ceb34e3df733362f3ee4b56bb504ff5e2a81c Author: Michael Meissner <meiss...@linux.ibm.com> Date: Tue Jul 30 18:23:14 2024 -0400 Use const HOST_WIDE_INT for arch masks. 2024-07-30 Michael Meissner <meiss...@linux.ibm.com> * config/rs6000/rs6000-opts.h (ARCH_MASK_*): Encode the masks as const HOST_WIDE_INT and not as an enumeratio. Diff: --- gcc/config/rs6000/rs6000-opts.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gcc/config/rs6000/rs6000-opts.h b/gcc/config/rs6000/rs6000-opts.h index 9a52a1d4b147..c7764e66cd03 100644 --- a/gcc/config/rs6000/rs6000-opts.h +++ b/gcc/config/rs6000/rs6000-opts.h @@ -80,15 +80,14 @@ enum { ARCH_ENUM_LAST }; -/* Create an architecture mask for the newer architectures (power7 and +/* Create an architecture mask for the newer architectures (power6 and up).. */ #undef ARCH_EXPAND -#define ARCH_EXPAND(PROC, NAME) ARCH_MASK_ ## PROC = 1 << ARCH_ENUM_ ## PROC, +#define ARCH_EXPAND(PROC, NAME) \ + static const HOST_WIDE_INT ARCH_MASK_ ## PROC \ + = HOST_WIDE_INT_1 << ARCH_ENUM_ ## PROC; -enum { #include "rs6000-arch.def" - ARCH_MASK_ZERO = 0 -}; #undef ARCH_EXPAND