diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-12-25 01:48:01 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-12-27 00:31:33 -0500 |
commit | 67c952d109873321b45b6de99cdbefbcd4249745 (patch) | |
tree | 06b40be2dcb9744e665590b13056220deeb20c00 /sim/configure | |
parent | 4c45662c0fd49bf25d3a014dec54224e9d11e90f (diff) | |
download | gdb-67c952d109873321b45b6de99cdbefbcd4249745.zip gdb-67c952d109873321b45b6de99cdbefbcd4249745.tar.gz gdb-67c952d109873321b45b6de99cdbefbcd4249745.tar.bz2 |
sim: mips: unify itable generation (a bit)
The m16 & multi targets generate itable once even when all the other
modules are generated multiple times. The default igen target will
generate itable with everything else out of convenience. This means
flags are passed which don't affect the generated itable there.
We can unify the itable generation by making sure the right -F/-M
filter variables are passed down. Since there's already a dedicated
rule & variable in the multi build mode, generalize that and switch
the m16 & igen builds over too.
I spent a lot of time staring at this code, building for diff mips
targets, and exploring all the shell code paths. I think this is
safe, but only time (and users) will really tell.
Diffstat (limited to 'sim/configure')
-rwxr-xr-x | sim/configure | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/configure b/sim/configure index 1045892..093142f 100755 --- a/sim/configure +++ b/sim/configure @@ -16601,6 +16601,10 @@ __EOF__ else SIM_MIPS_MULTI_SRC=doesnt-exist.c + SIM_MIPS_IGEN_ITABLE_FLAGS='$(SIM_MIPS_IGEN_FLAGS)' + if test "x$SIM_MIPS_GEN" = x"M16"; then : + as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS ' $(SIM_MIPS_M16_FLAGS)' +fi fi SIM_MIPS_IGEN_FLAGS="-F ${sim_mips_igen_filter} ${sim_mips_igen_machine}" |