binutils-gdb/sim/sh
Mike Frysinger 81817dacd6 sim: sh: fix conversion of PC to an integer
On LLP64 targets where sizeof(long) != sizeof(void*), this code fails:
sim/sh/interp.c:704:24: error: cast from pointer to integer of different size  -Werror=pointer-to-int-cast]
  704 |   do { memstalls += ((((long) PC & 3) != 0) ? (n) : ((n) - 1)); } while (0)
      |                        ^

Since this code simply needs to check alignment, cast it using uintptr_t
which is the right type for this.
2021-11-06 21:09:08 -04:00
..
ChangeLog-2021
gencode.c sim: sh: fix uninitialized variable usage with pdmsb 2021-11-06 20:32:31 -04:00
interp.c sim: sh: fix conversion of PC to an integer 2021-11-06 21:09:08 -04:00
local.mk
Makefile.in sim: sh: enable -Werror everywhere 2021-11-06 20:32:31 -04:00
sim-main.h sim: sh: rework register layout with anonymous unions & structs 2021-11-06 20:32:31 -04:00