diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-02-01 11:37:46 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-02-08 11:01:07 +0000 |
commit | da9ecd6085aa03f6f671f1e42431642912635820 (patch) | |
tree | 29ab615d0271ba45401ada319911f7ee1476a545 /sim/rx/ChangeLog | |
parent | fab2b376e305bfb4c55a51a15d8c7a293628d735 (diff) | |
download | binutils-gdb-da9ecd6085aa03f6f671f1e42431642912635820.tar.gz |
sim/rx: avoid pointer arithmetic on void * pointers
Pointer arithmetic on void * pointers results in a GCC warning. Avoid
the warning by casting the pointer to its actual type earlier in the
function.
sim/rx/ChangeLog:
* mem.c (mem_put_blk): Rename parameter, add cast from parameter
type to local type. Remove cast later in the function.
(mem_get_blk): Likewise.
* mem.h (mem_put_blk): Rename parameter to match definition.
(mem_get_blk): Likewise.
Diffstat (limited to 'sim/rx/ChangeLog')
-rw-r--r-- | sim/rx/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog index d71bb44c800..b3d76be02db 100644 --- a/sim/rx/ChangeLog +++ b/sim/rx/ChangeLog @@ -1,5 +1,13 @@ 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> + * mem.c (mem_put_blk): Rename parameter, add cast from parameter + type to local type. Remove cast later in the function. + (mem_get_blk): Likewise. + * mem.h (mem_put_blk): Rename parameter to match definition. + (mem_get_blk): Likewise. + +2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> + * load.c: Replace 'elf/internal.h' and 'elf/common.h' includes with 'elf-bfd.h' include. * trace.c: Add 'trace.h' include. |