* 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.
# 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 \
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 \
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 \
hppa-dis.c \
i386-dis.c \
i386-opc.c \
- ia64-dis.c \
- ia64-opc.c \
ip2k-asm.c \
ip2k-desc.c \
ip2k-dis.c \
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 \
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 \
mt-opc.c \
nds32-asm.c \
nds32-dis.c \
- nfp-dis.c \
nios2-dis.c \
nios2-opc.c \
ns32k-dis.c \
ppc-opc.c \
pru-dis.c \
pru-opc.c \
- riscv-dis.c \
- riscv-opc.c \
rl78-decode.c \
rl78-dis.c \
rx-decode.c \
# 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
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@
# 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 \
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 \
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 \
hppa-dis.c \
i386-dis.c \
i386-opc.c \
- ia64-dis.c \
- ia64-opc.c \
ip2k-asm.c \
ip2k-desc.c \
ip2k-dis.c \
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 \
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 \
mt-opc.c \
nds32-asm.c \
nds32-dis.c \
- nfp-dis.c \
nios2-dis.c \
nios2-opc.c \
ns32k-dis.c \
ppc-opc.c \
pru-dis.c \
pru-opc.c \
- riscv-dis.c \
- riscv-opc.c \
rl78-decode.c \
rl78-dis.c \
rx-decode.c \
# 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
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.
else # all_targets is true
archdefs=-DARCH_all
- BFD_MACHINES='$(ALL_MACHINES)'
+ if grep '#define BFD_ARCH_SIZE 64' ../bfd/bfd-in3.h > /dev/null; then
+ BFD_MACHINES='$(ALL32_MACHINES) $(ALL64_MACHINES)'
+ else
+ BFD_MACHINES='$(ALL32_MACHINES)'
+ fi
fi
else # all_targets is true
archdefs=-DARCH_all
- BFD_MACHINES='$(ALL_MACHINES)'
+ if grep '#define BFD_ARCH_SIZE 64' ../bfd/bfd-in3.h > /dev/null; then
+ BFD_MACHINES='$(ALL32_MACHINES) $(ALL64_MACHINES)'
+ else
+ BFD_MACHINES='$(ALL32_MACHINES)'
+ fi
fi
AC_SUBST(archdefs)
#include "opintl.h"
#ifdef ARCH_all
+#ifdef BFD64
#define ARCH_aarch64
#define ARCH_alpha
+#define ARCH_bpf
+#define ARCH_cris
+#define ARCH_ia64
+#define ARCH_loongarch
+#define ARCH_mips
+#define ARCH_mmix
+#define ARCH_nfp
+#define ARCH_riscv
+#define ARCH_score
+#define ARCH_tilegx
+#endif
#define ARCH_arc
#define ARCH_arm
#define ARCH_avr
#define ARCH_bfin
#define ARCH_cr16
-#define ARCH_cris
#define ARCH_crx
#define ARCH_csky
#define ARCH_d10v
#define ARCH_d30v
#define ARCH_dlx
-#define ARCH_bpf
#define ARCH_epiphany
#define ARCH_fr30
#define ARCH_frv
#define ARCH_h8300
#define ARCH_hppa
#define ARCH_i386
-#define ARCH_ia64
#define ARCH_ip2k
#define ARCH_iq2000
#define ARCH_lm32
-#define ARCH_loongarch
#define ARCH_m32c
#define ARCH_m32r
#define ARCH_m68hc11
#define ARCH_mep
#define ARCH_metag
#define ARCH_microblaze
-#define ARCH_mips
-#define ARCH_mmix
#define ARCH_mn10200
#define ARCH_mn10300
#define ARCH_moxie
#define ARCH_mt
#define ARCH_msp430
#define ARCH_nds32
-#define ARCH_nfp
#define ARCH_nios2
#define ARCH_ns32k
#define ARCH_or1k
#define ARCH_pj
#define ARCH_powerpc
#define ARCH_pru
-#define ARCH_riscv
#define ARCH_rs6000
#define ARCH_rl78
#define ARCH_rx
#define ARCH_s12z
#define ARCH_s390
-#define ARCH_score
#define ARCH_sh
#define ARCH_sparc
#define ARCH_spu
#define ARCH_tic4x
#define ARCH_tic54x
#define ARCH_tic6x
-#define ARCH_tilegx
#define ARCH_tilepro
#define ARCH_v850
#define ARCH_vax