aboutsummaryrefslogtreecommitdiff
path: root/gdb/compile/compile-object-run.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-12-12 16:47:21 +1030
committerAlan Modra <amodra@gmail.com>2019-12-12 21:58:23 +1030
commit84bc4ba8168154fae0da7d56dcd11df0d4bc44f2 (patch)
treeab68efb69511b8743faed531578826377b7b4ced /gdb/compile/compile-object-run.c
parent967354c3b9b0306785dde600ab6f851fe1418612 (diff)
downloadgdb-84bc4ba8168154fae0da7d56dcd11df0d4bc44f2.zip
gdb-84bc4ba8168154fae0da7d56dcd11df0d4bc44f2.tar.gz
gdb-84bc4ba8168154fae0da7d56dcd11df0d4bc44f2.tar.bz2
obj-evax.c tidy
This started out as fixing decode_16, which used a char to index a 256 byte decodings array. When char is signed that could result in an out of bounds array access. The rest of the patch is for consistency and just general cleanup. * config/obj-evax.c (crc32, encode_32, encode_16, decode_16): Remove unnecessary prototypes. (number_of_codings): Delete, use ARRAY_SIZE instead throughout. (codings, decodings): Make arrays of unsigned char. (crc32): Use unsigned variables. Delete unnecessary mask. (encode_32, encode_16): Return unsigned char*, and make static buffer an unsigned char array. (decode_16): Make arg an unsigned char*. Remove useless casts. (shorten_identifier): Use unsigned char crc_chars. (is_truncated_identifier): Make ptr an unsigned char*.
Diffstat (limited to 'gdb/compile/compile-object-run.c')
0 files changed, 0 insertions, 0 deletions