aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite
diff options
context:
space:
mode:
authorSergei Trofimovich <siarheit@google.com>2021-11-14 17:39:35 +0000
committerSergei Trofimovich <siarheit@google.com>2021-11-16 23:32:00 +0000
commite97436b1b789dcdb6ffb502263f4c86f8bc22996 (patch)
treeb9f1a2bdf5eab33e6d1fb34298b5d5383dac1c08 /sim/testsuite
parent7f74204ad972f6c0d0ff846af9f1f2f7e76fa5c5 (diff)
downloadbinutils-e97436b1b789dcdb6ffb502263f4c86f8bc22996.zip
binutils-e97436b1b789dcdb6ffb502263f4c86f8bc22996.tar.gz
binutils-e97436b1b789dcdb6ffb502263f4c86f8bc22996.tar.bz2
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'.
Diffstat (limited to 'sim/testsuite')
0 files changed, 0 insertions, 0 deletions