diff options
author | Alan Modra <amodra@gmail.com> | 2021-11-12 18:55:45 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-11-12 19:02:12 +1030 |
commit | 0b32f05baccc6e1ab7f74a55254c5db86e22522b (patch) | |
tree | ea261edea58457c3dab7a8a1ef0f1bd5211cbb28 /opcodes/Makefile.in | |
parent | be472decb251e0a27edf4575e054cce107956d26 (diff) | |
download | gdb-0b32f05baccc6e1ab7f74a55254c5db86e22522b.zip gdb-0b32f05baccc6e1ab7f74a55254c5db86e22522b.tar.gz gdb-0b32f05baccc6e1ab7f74a55254c5db86e22522b.tar.bz2 |
Don't compile some opcodes files when bfd is 32-bit only
* Makefile.am (TARGET_LIBOPCODES_CFILES): Split into..
(TARGET64_LIBOPCODES_CFILES): ..this and..
(TARGET32_LIBOPCODES_CFILES): ..this.
(ALL_MACHINES): Likewise split to
(ALL64_MACHINES, ALL32_MACHINES): ..this.
* disassemble.c: Define some ARCH_* when ARCH_all only if BFD64.
* configure.ac (BFD_MACHINES): Defined depending on BFD_ARCH_SIZE.
* Makefile.in: Regenerate.
* configure: Regenerate.
Diffstat (limited to 'opcodes/Makefile.in')
-rw-r--r-- | opcodes/Makefile.in | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/opcodes/Makefile.in b/opcodes/Makefile.in index 9427371..59ed0d2 100644 --- a/opcodes/Makefile.in +++ b/opcodes/Makefile.in @@ -479,7 +479,7 @@ HFILES = \ # C source files that correspond to .o's ending up in libopcodes # for all machines. -TARGET_LIBOPCODES_CFILES = \ +TARGET64_LIBOPCODES_CFILES = \ aarch64-asm.c \ aarch64-asm-2.c \ aarch64-dis.c \ @@ -488,6 +488,27 @@ TARGET_LIBOPCODES_CFILES = \ aarch64-opc-2.c \ alpha-dis.c \ alpha-opc.c \ + bpf-asm.c \ + bpf-desc.c \ + bpf-dis.c \ + bpf-ibld.c \ + bpf-opc.c \ + ia64-dis.c \ + ia64-opc.c \ + loongarch-opc.c \ + loongarch-dis.c \ + loongarch-coder.c \ + mips-dis.c \ + mips-opc.c \ + mips16-opc.c \ + micromips-opc.c \ + mmix-dis.c \ + mmix-opc.c \ + nfp-dis.c \ + riscv-dis.c \ + riscv-opc.c + +TARGET32_LIBOPCODES_CFILES = \ arc-dis.c \ arc-ext.c \ arc-opc.c \ @@ -511,11 +532,6 @@ TARGET_LIBOPCODES_CFILES = \ d30v-dis.c \ d30v-opc.c \ dlx-dis.c \ - bpf-asm.c \ - bpf-desc.c \ - bpf-dis.c \ - bpf-ibld.c \ - bpf-opc.c \ epiphany-asm.c \ epiphany-desc.c \ epiphany-dis.c \ @@ -537,8 +553,6 @@ TARGET_LIBOPCODES_CFILES = \ hppa-dis.c \ i386-dis.c \ i386-opc.c \ - ia64-dis.c \ - ia64-opc.c \ ip2k-asm.c \ ip2k-desc.c \ ip2k-dis.c \ @@ -555,9 +569,6 @@ TARGET_LIBOPCODES_CFILES = \ lm32-ibld.c \ lm32-opc.c \ lm32-opinst.c \ - loongarch-opc.c \ - loongarch-dis.c \ - loongarch-coder.c \ m10200-dis.c \ m10200-opc.c \ m10300-dis.c \ @@ -587,12 +598,6 @@ TARGET_LIBOPCODES_CFILES = \ mep-opc.c \ metag-dis.c \ microblaze-dis.c \ - micromips-opc.c \ - mips-dis.c \ - mips-opc.c \ - mips16-opc.c \ - mmix-dis.c \ - mmix-opc.c \ moxie-dis.c \ moxie-opc.c \ msp430-decode.c \ @@ -604,7 +609,6 @@ TARGET_LIBOPCODES_CFILES = \ mt-opc.c \ nds32-asm.c \ nds32-dis.c \ - nfp-dis.c \ nios2-dis.c \ nios2-opc.c \ ns32k-dis.c \ @@ -621,8 +625,6 @@ TARGET_LIBOPCODES_CFILES = \ ppc-opc.c \ pru-dis.c \ pru-opc.c \ - riscv-dis.c \ - riscv-opc.c \ rl78-decode.c \ rl78-dis.c \ rx-decode.c \ @@ -670,7 +672,8 @@ TARGET_LIBOPCODES_CFILES = \ # C source files that correspond to .o's ending up in libopcodes. LIBOPCODES_CFILES = \ - $(TARGET_LIBOPCODES_CFILES) \ + $(TARGET32_LIBOPCODES_CFILES) \ + $(TARGET64_LIBOPCODES_CFILES) \ dis-buf.c \ dis-init.c \ disassemble.c @@ -692,7 +695,8 @@ CFILES = \ s390-mkopc.c \ z8kgen.c -ALL_MACHINES = $(TARGET_LIBOPCODES_CFILES:.c=.lo) +ALL32_MACHINES = $(TARGET32_LIBOPCODES_CFILES:.c=.lo) +ALL64_MACHINES = $(TARGET64_LIBOPCODES_CFILES:.c=.lo) OFILES = @BFD_MACHINES@ # development.sh is used to determine -Werror default. |