binutils-gdb/sim
Mike Frysinger dcc6c863ed sim: ppc: switch register read/writes to union to avoid aliasing issues
This code creates a small buffer on the stack w/alloca, then proceeds to
write to it with a cast to a pointer type based on the register type, then
reads from it with a cast to a pointer type based on the register size.
gcc will flags only one of these lines as "maybe used uninitialized", but
it seems to track back to this memory abuse.

Create a large union with all the possible types that this code will read
or write as, and then use those.  It's a bit ugly, but is probably better
than using raw memcpy's everywhere.
2024-01-18 01:46:27 -05:00
..
aarch64 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
arm Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
avr Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
bfin Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
bpf Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
common Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cr16 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cris Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
d10v Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
erc32 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
example-synacor Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
frv Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
ft32 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
h8300 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
igen Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
iq2000 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
lm32 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
m4 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
m32c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
m32r Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
m68hc11 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
mcore Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
microblaze Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
mips Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
mn10300 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
moxie Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
msp430 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
or1k Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
ppc sim: ppc: switch register read/writes to union to avoid aliasing issues 2024-01-18 01:46:27 -05:00
pru Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
riscv Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
rl78 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
rx Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sh Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
testsuite sim: Fix compile errors 2024-01-12 21:48:25 +02:00
v850 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
.gitignore sim: drop unused gentmap & nltvals.def logic 2021-11-28 13:24:00 -05:00
aclocal.m4 sim: smp: make option available again 2022-12-25 02:13:30 -05:00
ChangeLog-2021 sim: rename ChangeLog files to ChangeLog-2021 2021-08-17 20:27:36 -04:00
config.h.in sim: m32r: fixup some of the int<->pointer casts 2024-01-10 22:37:03 -05:00
configure sim: m32r: fixup some of the int<->pointer casts 2024-01-10 22:37:03 -05:00
configure.ac sim: build: switch to gdbsupport/libiberty.m4 2024-01-10 19:53:10 -05:00
COPYING sim: clarify license text via COPYING file 2021-11-06 01:44:06 -04:00
gdbinit.in sim: gdbinit: hoist setup to common code 2022-02-21 13:57:33 -05:00
MAINTAINERS sim: Update mailing list address 2022-09-01 10:15:09 -04:00
Makefile.am Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
Makefile.in Regenerate two Makefile.in files to update Copyright headers 2024-01-15 15:44:25 +01:00
README-HACKING sim: build: delete Make-common.in logic 2023-01-13 17:34:53 -05:00