On 14 Nov 2021 17:42, Sergei Trofimovich via Cgen wrote: > From: Sergei Trofimovich > > On gcc-12 build fails as: > > sim/cr16/interp.c: In function 'lookup_hash': > sim/cr16/interp.c:89:25: error: > the comparison will always evaluate as 'true' > for the address of 'mnimonic' will never be NULL [-Werror=address] > 89 | if ((h->ops->mnimonic != NULL) && > | ^~ > > 'mnimonic' is a sharr array within ops. It can never be NULL. > > While at it renamed 'mnimonic' to 'mnemonic'. > --- > sim/cr16/cr16_sim.h | 2 +- > sim/cr16/interp.c | 5 ++--- > 2 files changed, 3 insertions(+), 4 deletions(-) this code doesn't exist in cgen. did you mean to send the patch here ? -mike