binutils-gdb/sim/cr16
Sergei Trofimovich e97436b1b7 sim: cr16: fix build on gcc-12 (NULL comparison)
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'.
2021-11-16 23:32:00 +00:00
..
ChangeLog-2021
cr16_sim.h sim: cr16: fix build on gcc-12 (NULL comparison) 2021-11-16 23:32:00 +00:00
gencode.c
interp.c sim: cr16: fix build on gcc-12 (NULL comparison) 2021-11-16 23:32:00 +00:00
local.mk sim: hoist gencode & opc2c build rules up to common builds 2021-11-02 22:59:07 -04:00
Makefile.in sim: hoist gencode & opc2c build rules up to common builds 2021-11-02 22:59:07 -04:00
sim-main.h
simops.c