aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/igen.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-05-15 10:48:02 -0400
committerMike Frysinger <vapier@gentoo.org>2021-05-15 11:00:00 -0400
commitbe2bc30f9cb3e8dd8b566db551a8ce3cc305e015 (patch)
treeb956da9b71b744d3600ee4a1a7817c4f92f3c2ba /sim/ppc/igen.c
parentc5a2e0123b7241be6a2022f1acb8fa700dda628a (diff)
downloadgdb-be2bc30f9cb3e8dd8b566db551a8ce3cc305e015.zip
gdb-be2bc30f9cb3e8dd8b566db551a8ce3cc305e015.tar.gz
gdb-be2bc30f9cb3e8dd8b566db551a8ce3cc305e015.tar.bz2
sim: ppc: clean up various warnings
A random grab bag of minor fixes to enable -Werror for this port. Cast address vars to long when the format was using %l. Use %zu with sizeof operations. Add const to a bunch of strings. Trim unused variables. Fix sizeof call to calculate target storage and not the pointer itself.
Diffstat (limited to 'sim/ppc/igen.c')
-rw-r--r--sim/ppc/igen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/ppc/igen.c b/sim/ppc/igen.c
index c036f04..0bf3b58 100644
--- a/sim/ppc/igen.c
+++ b/sim/ppc/igen.c
@@ -218,6 +218,7 @@ gen_semantics_c(insn_table *table,
lf_printf(file, "#include \"cpu.h\"\n");
lf_printf(file, "#include \"idecode.h\"\n");
lf_printf(file, "#include \"semantics.h\"\n");
+ lf_printf(file, "#include \"tree.h\"\n");
lf_printf(file, "#ifdef HAVE_COMMON_FPU\n");
lf_printf(file, "#include \"sim-inline.h\"\n");
lf_printf(file, "#include \"sim-fpu.h\"\n");