1999-05-03 07:29:11 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
dnl
|
|
|
|
dnl And be careful when changing it! If you must add tests with square
|
|
|
|
dnl brackets, be sure changequote invocations surround it.
|
|
|
|
dnl
|
|
|
|
dnl
|
|
|
|
dnl v2.5 needed for --bindir et al
|
2008-08-24 03:13:05 +00:00
|
|
|
AC_PREREQ(2.59)
|
|
|
|
AC_INIT
|
|
|
|
AC_CONFIG_SRCDIR(as.h)
|
1999-05-03 07:29:11 +00:00
|
|
|
|
2003-09-02 17:59:13 +00:00
|
|
|
dnl Autoconf 2.57 will find the aux dir without this. However, unless
|
|
|
|
dnl we specify this explicitly, automake-1.7 will assume that ylwrap is in
|
|
|
|
dnl gas/ instead of gas/../.
|
|
|
|
AC_CONFIG_AUX_DIR(..)
|
2008-08-24 03:13:05 +00:00
|
|
|
AC_CANONICAL_TARGET
|
2000-09-07 21:08:51 +00:00
|
|
|
AC_ISC_POSIX
|
1999-05-03 07:29:11 +00:00
|
|
|
|
2001-02-27 06:43:56 +00:00
|
|
|
changequote(,)dnl
|
2012-07-27 16:30:57 +00:00
|
|
|
BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
|
2001-02-27 06:43:56 +00:00
|
|
|
changequote([,])dnl
|
|
|
|
AM_INIT_AUTOMAKE(gas, ${BFD_VERSION})
|
1999-05-03 07:29:11 +00:00
|
|
|
|
2007-10-24 16:45:53 +00:00
|
|
|
AC_PROG_CC
|
|
|
|
AC_GNU_SOURCE
|
2008-08-15 08:31:52 +00:00
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
2009-11-11 04:42:42 +00:00
|
|
|
ACX_LARGEFILE
|
2007-10-24 16:45:53 +00:00
|
|
|
|
2008-08-24 03:13:05 +00:00
|
|
|
LT_INIT
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(targets,
|
2006-04-19 02:06:15 +00:00
|
|
|
[ --enable-targets alternative target configurations besides the primary],
|
1999-05-03 07:29:11 +00:00
|
|
|
[case "${enableval}" in
|
2008-08-24 03:13:05 +00:00
|
|
|
yes | "") AC_MSG_ERROR(enable-targets option must specify target names or 'all')
|
1999-05-03 07:29:11 +00:00
|
|
|
;;
|
|
|
|
no) enable_targets= ;;
|
|
|
|
*) enable_targets=$enableval ;;
|
|
|
|
esac])dnl
|
2007-04-21 05:15:41 +00:00
|
|
|
|
|
|
|
ac_checking=yes
|
|
|
|
if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
|
|
|
|
ac_checking=
|
|
|
|
fi
|
|
|
|
AC_ARG_ENABLE(checking,
|
|
|
|
[ --enable-checking enable run-time checks],
|
|
|
|
[case "${enableval}" in
|
|
|
|
no|none) ac_checking= ;;
|
|
|
|
*) ac_checking=yes ;;
|
|
|
|
esac])dnl
|
|
|
|
if test x$ac_checking != x ; then
|
|
|
|
AC_DEFINE(ENABLE_CHECKING, 1, [Define if you want run-time sanity checks.])
|
|
|
|
fi
|
|
|
|
|
1999-05-03 07:29:11 +00:00
|
|
|
using_cgen=no
|
|
|
|
|
2005-04-14 05:26:44 +00:00
|
|
|
AM_BINUTILS_WARNINGS
|
2000-04-09 12:17:43 +00:00
|
|
|
|
1999-05-03 07:29:11 +00:00
|
|
|
# Generate a header file
|
2008-08-24 03:13:05 +00:00
|
|
|
AC_CONFIG_HEADERS(config.h:config.in)
|
1999-05-03 07:29:11 +00:00
|
|
|
|
2012-05-17 15:13:28 +00:00
|
|
|
# PR 14072
|
|
|
|
AH_VERBATIM([00_CONFIG_H_CHECK],
|
|
|
|
[/* Check that config.h is #included before system headers
|
|
|
|
(this works only for glibc, but that should be enough). */
|
|
|
|
#if defined(__GLIBC__) && !defined(__CONFIG_H__)
|
|
|
|
# error config.h must be #included before system headers
|
|
|
|
#endif
|
|
|
|
#define __CONFIG_H__ 1])
|
|
|
|
|
1999-08-08 15:56:55 +00:00
|
|
|
# If we are on a DOS filesystem, we must use gdb.ini rather than
|
|
|
|
# .gdbinit.
|
|
|
|
case "${host}" in
|
2002-11-11 17:21:33 +00:00
|
|
|
*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
|
1999-08-08 15:56:55 +00:00
|
|
|
GDBINIT="gdb.ini"
|
2003-09-02 17:59:13 +00:00
|
|
|
AC_CONFIG_FILES(gdb.ini:gdbinit.in)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
GDBINIT=".gdbinit"
|
|
|
|
AC_CONFIG_FILES(.gdbinit:gdbinit.in)
|
1999-08-08 15:56:55 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(GDBINIT)
|
|
|
|
|
2005-03-01 00:43:58 +00:00
|
|
|
#We need this for the host. BOUT header is in host order.
|
|
|
|
AC_C_BIGENDIAN
|
|
|
|
|
1999-05-03 07:29:11 +00:00
|
|
|
te_file=generic
|
|
|
|
|
|
|
|
# Makefile target for installing gas in $(tooldir)/bin.
|
|
|
|
install_tooldir=install-exec-tooldir
|
|
|
|
|
|
|
|
canon_targets=""
|
2000-03-02 20:15:33 +00:00
|
|
|
all_targets=no
|
1999-05-03 07:29:11 +00:00
|
|
|
if test -n "$enable_targets" ; then
|
|
|
|
for t in `echo $enable_targets | sed 's/,/ /g'`; do
|
2000-03-02 20:15:33 +00:00
|
|
|
if test $t = "all"; then
|
|
|
|
all_targets=yes
|
|
|
|
continue
|
|
|
|
fi
|
1999-09-14 23:29:35 +00:00
|
|
|
result=`$ac_config_sub $t 2>/dev/null`
|
1999-05-03 07:29:11 +00:00
|
|
|
if test -n "$result" ; then
|
|
|
|
canon_targets="$canon_targets $result"
|
|
|
|
# else
|
|
|
|
# # Permit "all", etc. We don't support it yet though.
|
|
|
|
# canon_targets="$canon_targets $t"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
GAS_UNIQ(canon_targets)
|
|
|
|
fi
|
|
|
|
|
|
|
|
emulations=""
|
|
|
|
|
|
|
|
for this_target in $target $canon_targets ; do
|
|
|
|
|
2004-12-22 15:29:25 +00:00
|
|
|
targ=${this_target}
|
|
|
|
. ${srcdir}/configure.tgt
|
|
|
|
|
|
|
|
case ${target_cpu} in
|
|
|
|
crisv32)
|
|
|
|
AC_DEFINE_UNQUOTED(DEFAULT_CRIS_ARCH, $arch,
|
|
|
|
[Default CRIS architecture.])
|
|
|
|
;;
|
1999-05-03 07:29:11 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
if test ${this_target} = $target ; then
|
|
|
|
target_cpu_type=${cpu_type}
|
|
|
|
elif test ${target_cpu_type} != ${cpu_type} ; then
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
2004-12-22 15:29:25 +00:00
|
|
|
generic_target=${cpu_type}-${target_vendor}-${target_os}
|
1999-05-03 07:29:11 +00:00
|
|
|
case ${generic_target} in
|
2004-12-22 15:29:25 +00:00
|
|
|
i386-*-sco3.2v5*)
|
|
|
|
if test ${this_target} = $target; then
|
|
|
|
AC_DEFINE(SCO_ELF, 1, [Define if defaulting to ELF on SCO 5.])
|
|
|
|
fi
|
|
|
|
;;
|
2004-07-07 17:28:53 +00:00
|
|
|
|
2002-08-09 03:42:15 +00:00
|
|
|
i386-*-msdosdjgpp* \
|
|
|
|
| i386-*-go32* \
|
2004-12-22 15:29:25 +00:00
|
|
|
| i386-go32-rtems*)
|
|
|
|
AC_DEFINE(STRICTCOFF, 1, [Using strict COFF?])
|
|
|
|
;;
|
2002-08-09 03:42:15 +00:00
|
|
|
|
2004-12-22 15:29:25 +00:00
|
|
|
i860-*-*)
|
|
|
|
AC_MSG_WARN(GAS support for ${generic_target} is preliminary and a work in progress)
|
|
|
|
;;
|
2002-08-09 03:42:15 +00:00
|
|
|
|
Add support for Xilinx MicroBlaze processor.
* bfd/Makefile.am: Add cpu-microblaze.{lo,c}, elf32-microblaze.{lo,c}.
* bfd/Makefile.in: Same.
* bfd/archures.c: Add bfd_arch_microblaze.
* bfd/bfd-in2.h: Regenerate.
* bfd/config.bfd: Add microblaze target.
* bfd/configure: Add bfd_elf32_microblaze_vec target.
* bfd/configure.in: Same.
* bfd/cpu-microblaze.c: New.
* bfd/elf32-microblaze.c: New.
* bfd/libbfd-in.h: Add prototype _bfd_dwarf2_fixup_section_debug_loc().
* bfd/libbfd.h: Regenerate.
* bfd/reloc.c: Add MICROBLAZE relocations.
* bfd/section.c: Add struct relax_table and relax_count to section.
* bfd/targets.c: Add bfd_elf32_microblaze_vec.
* binutils/MAINTAINERS: Add self as maintainer.
* binutils/readelf.c: Include elf/microblaze.h, add EM_MICROBLAZE &
EM_MICROBLAZE_OLD to guess_is_rela(), dump_relocations(),
get_machine_name().
* config.sub: Add microblaze target.
* configure: Same.
* configure.ac: Same.
* gas/Makefile.am: add microblaze to CPU_TYPES, config/tc-microblaze.c to
TARGET_CPU_CFILES, config/tc-microblaze.h to TARGET_CPU_HFILES, add
DEP_microblaze_elf target.
* gas/Makefile.in: Same.
* gas/config/tc-microblaze.c: Add MicroBlaze assembler.
* gas/config/tc-microblaze.h: Add header for tc-microblaze.c.
* gas/configure: Add microblaze target.
* gas/configure.in: Same.
* gas/configure.tgt: Same.
* gas/doc/Makefile.am: Add c-microblaze.texi to CPU_DOCS.
* gas/doc/Makefile.in: Same.
* gas/doc/all.texi: Set MICROBLAZE.
* gas/doc/as.texinfo: Add MicroBlaze doc links.
* gas/doc/c-microblaze.texi: New MicroBlaze docs.
* include/dis-asm.h: Decl print_insn_microblaze().
* include/elf/common.h: Define EM_MICROBLAZE & EM_MICROBLAZE_OLD.
* include/elf/microblaze.h: New reloc definitions.
* ld/Makefile.am: Add eelf32mb_linux.o, eelf32microblaze.o to
ALL_EMULATIONS, targets.
* ld/Makefile.in: Same.
* ld/configure.tgt: Add microblaze*-linux*, microblaze* targets.
* ld/emulparams/elf32mb_linux.sh: New.
* ld/emulparams/elf32microblaze.sh. New.
* ld/scripttempl/elfmicroblaze.sc: New.
* opcodes/Makefile.am: Add microblaze-opc.h to HFILES, microblaze-dis.c to
CFILES, microblaze-dis.lo to ALL_MACHINES, targets.
* opcodes/Makefile.in: Same.
* opcodes/configure: Add bfd_microblaze_arch target.
* opcodes/configure.in: Same.
* opcodes/disassemble.c: Define ARCH_microblaze, return
print_insn_microblaze().
* opcodes/microblaze-dis.c: New MicroBlaze disassembler.
* opcodes/microblaze-opc.h: New MicroBlaze opcode definitions.
* opcodes/microblaze-opcm.h: New MicroBlaze opcode types.
2009-08-06 17:38:04 +00:00
|
|
|
microblaze*)
|
|
|
|
;;
|
|
|
|
|
2004-12-22 15:29:25 +00:00
|
|
|
mips-sony-bsd*)
|
|
|
|
;;
|
2002-08-09 03:42:15 +00:00
|
|
|
mips-*-bsd*)
|
2004-12-22 15:29:25 +00:00
|
|
|
AC_MSG_ERROR(Unknown vendor for mips-bsd configuration.)
|
|
|
|
;;
|
2004-08-16 08:25:44 +00:00
|
|
|
|
2009-03-14 09:11:38 +00:00
|
|
|
changequote(,)dnl
|
|
|
|
ppc-*-aix[5-9].*)
|
|
|
|
changequote([,])dnl
|
2004-12-22 15:29:25 +00:00
|
|
|
AC_DEFINE(AIX_WEAK_SUPPORT, 1,
|
2003-12-03 15:07:17 +00:00
|
|
|
[Define if using AIX 5.2 value for C_WEAKEXT.])
|
2004-12-22 15:29:25 +00:00
|
|
|
;;
|
2005-03-23 15:35:50 +00:00
|
|
|
ppc-*-linux-*)
|
2004-12-22 15:29:25 +00:00
|
|
|
case "$endian" in
|
|
|
|
big) ;;
|
|
|
|
*) AC_MSG_ERROR(GNU/Linux must be configured big endian) ;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
ppc-*-solaris*)
|
|
|
|
if test ${this_target} = $target; then
|
|
|
|
AC_DEFINE(TARGET_SOLARIS_COMMENT, 1,
|
|
|
|
[Define if default target is PowerPC Solaris.])
|
|
|
|
fi
|
|
|
|
if test x${endian} = xbig; then
|
|
|
|
AC_MSG_ERROR(Solaris must be configured little endian)
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
|
|
|
sh*-*-symbianelf*)
|
|
|
|
AC_DEFINE(TARGET_SYMBIAN, 1, [Define if target is Symbian OS.])
|
|
|
|
;;
|
1999-05-03 07:29:11 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
if test ${this_target} = $target ; then
|
|
|
|
endian_def=
|
|
|
|
if test x${endian} = xbig; then
|
|
|
|
endian_def=1
|
|
|
|
elif test x${endian} = xlittle; then
|
|
|
|
endian_def=0
|
|
|
|
fi
|
|
|
|
if test x${endian_def} != x; then
|
|
|
|
AC_DEFINE_UNQUOTED(TARGET_BYTES_BIG_ENDIAN, $endian_def,
|
|
|
|
[Define as 1 if big endian.])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Other random stuff.
|
|
|
|
|
[gas/]
* doc/c-mips.texi: Remove -mcpu. Document -mabi.
* configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
(USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
* configure, config.in: Regenerate.
* config/tc-mips.c (file_mips_abi): Rename to mips_abi.
(mips_set_options): Remove "abi" field.
(mips_opts): Update accordingly. Replace all uses of mips_opts.abi
with mips_abi.
(mips_cpu): Remove.
(mips_arch_string, mips_arch_info): New vars.
(mips_tune_string, mips_tune_info): New vars.
(ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
(HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
(mips_isa_to_str, mips_cpu_to_str): Remove.
(mips_ip): If the selected architecture is a generic ISA rather
than a processor, only mention the ISA level in error messages.
(OPTION_MCPU): Remove.
(OPTION_FP64): New.
(md_longopts): Add -mfp64, remove -mcpu.
(mips_set_option_string): New fn.
(md_parse_option): Make -mipsN update file_mips_isa rather than
mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
Don't let -mgp32 and -mfp32 change the ABI.
(show): Move to end of file. Constify string argument.
(md_show_usage): Move to the end of the file. Read available
architectures from mips_cpu_info_table.
(mips_set_architecture): New fn.
(mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
is an alias for -march=mipsN. Don't change the ABI based on other
flags. Infer the register size from the ABI as well as the
architecture. Complain about more conflicting arguments.
Unify logic with GCC.
(s_mipsset): Don't change the ABI.
(mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
(mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
"mipsN"-type entries. Remove entries that vary only in the
manufacturer's prefix, or that have "000" replaced by "k".
Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
(mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
(mips_parse_cpu): New fn.
(mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
(mips_cpu_info_from_isa): Minor formatting tweak.
[gas/testsuite]
* gas/mips/mips-gp32-fp64.d,
* gas/mips/mips-gp32-fp64-pic.d: Add -mfp64.
2002-07-25 09:48:07 +00:00
|
|
|
case ${cpu_type} in
|
|
|
|
mips)
|
|
|
|
# Set mips_cpu to the name of the default CPU.
|
|
|
|
case ${target_cpu} in
|
|
|
|
mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
|
|
|
|
mips_cpu=from-abi
|
|
|
|
;;
|
|
|
|
mipsisa32 | mipsisa32el)
|
|
|
|
mips_cpu=mips32
|
|
|
|
;;
|
[ bfd/ChangeLog ]
2002-12-30 Chris Demetriou <cgd@broadcom.com>
* aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mipsisa32r2 case.
* archures.c (bfd_mach_mipsisa32r2): New define.
* bfd-in2.h: Regenerate.
* cpu-mips.c (I_mipsisa32r2): New enum value.
(arch_info_struct): Add entry for I_mipsisa32r2.
* elfxx-mips.c (elf_mips_isa, _bfd_elf_mips_mach)
(_bfd_mips_elf_print_private_bfd_data): Handle E_MIPS_ARCH_32R2.
(_bfd_mips_elf_final_write_processing): Add
bfd_mach_mipsisa32r2 case.
(_bfd_mips_elf_merge_private_bfd_data): Handle merging of
binaries marked as using MIPS32 Release 2.
[ binutils/ChangeLog ]
2002-12-30 Chris Demetriou <cgd@broadcom.com>
* doc/binutils.texi (objdump): Note MIPS HWR (Hardware Register)
changes in MIPS -M options.
[ gas/ChangeLog ]
2002-12-30 Chris Demetriou <cgd@broadcom.com>
* configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
CPU variants.
* configure: Regenerate.
* config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
(macro_build): Handle "K" operand.
(macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
CPU_HAS_DROR and CPU_HAS_ROR are currently used.
(mips_ip): New variable "lastpos", and implement "+A", "+B",
and "+C" operands for MIPS32 Release 2 ins/ext instructions.
Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
(validate_mips_insn): Implement "+" as a way to extend the
allowed operands, and implement "K", "+A", "+B", and "+C"
operands.
(OPTION_MIPS32R2): New define.
(md_longopts): Add entry for OPTION_MIPS32R2.
(OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
(md_parse_option): Handle OPTION_MIPS32R2.
(s_mipsset): Reimplement handling of ".set mipsN" options
and add support for ".set mips32r2".
(mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
(md_show_usage): Document "-mips32r2" option.
* doc/as.texinfo: Document "-mips32r2" option.
* doc/c-mips.texi: Likewise.
[ gas/testsuite/ChangeLog ]
2002-12-30 Chris Demetriou <cgd@broadcom.com>
* gas/mips/cp0-names-mips32r2.d: New test.
* gas/mips/hwr-names-mips32r2.d: New test.
* gas/mips/hwr-names-numeric.d: New test.
* gas/mips/hwr-names.s: New test source file.
* gas/mips/mips32r2.d: New test.
* gas/mips/mips32r2.s: New test source file.
* gas/mips/mips32r2-ill.l: New test.
* gas/mips/mips32r2-ill.s: New test source file.
* gas/mips/mips.exp: Add mips32r2 architecture data array
entry. Run new tests mentioned above.
[ include/elf/ChangeLog ]
2002-12-30 Chris Demetriou <cgd@broadcom.com>
* mips.h (E_MIPS_ARCH_32R2): New define.
[ include/opcode/ChangeLog ]
2002-12-30 Chris Demetriou <cgd@broadcom.com>
* mips.h: Document "+" as the start of two-character operand
type names, and add new "K", "+A", "+B", and "+C" operand types.
(OP_MASK_INSMSB, OP_SH_INSMSB, OP_MASK_EXTMSB)
(OP_SH_EXTMSB, INSN_ISA32R2, ISA_MIPS32R2, CPU_MIPS32R2): New
defines.
[ opcodes/ChangeLog ]
2002-12-30 Chris Demetriou <cgd@broadcom.com>
* mips-dis.c (mips_cp0_names_mips3264r2, mips_hwr_names_numeric)
(mips_hwr_names_mips3264r2): New arrays.
(mips_arch_choice): New "hwr_names" member.
(mips_arch_choices): Adjust for structure change, and add a new
entry for "mips32r2" ISA.
(mips_hwr_names): New variable.
(set_default_mips_dis_options): Set mips_hwr_names.
(parse_mips_dis_option): New "hwr-names" option which sets
mips_hwr_names, and adjust "reg-names=ARCH" to set mips_hwr_names.
(print_insn_arg): Change return type to "int"
and use that to indicate number of characters consumed.
Add support for "+" operand extension character, "+A", "+B",
"+C", and "K" operands.
(print_insn_mips): Adjust for changes to print_insn_arg.
(print_mips_disassembler_options): Adjust for "hwr-names"
addition and "reg-names" change.
* mips-opc (I33): New define (shorthand for INSN_ISA32R2).
(mips_builtin_opcodes): Note that "nop" and "ssnop" are special
forms of "sll". Add new MIPS32 Release 2 instructions: ehb,
di, ei, ext, ins, jr.hb, jalr.hb, mfhc1, mfhc2, mthc1, mthc2,
rdhwr, rdpgpr, seb, seh, synci, wrpgpr, wsbh.
Note that hardware rotate instructions (ror, rorv) can be
used on MIPS32 Release 2, and add the official mnemonics
for them (rotr, rotrv) and the similar "rotl" mnemonic for
left-rotate.
2002-12-31 07:29:29 +00:00
|
|
|
mipsisa32r2 | mipsisa32r2el)
|
|
|
|
mips_cpu=mips32r2
|
|
|
|
;;
|
[gas/]
* doc/c-mips.texi: Remove -mcpu. Document -mabi.
* configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
(USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
* configure, config.in: Regenerate.
* config/tc-mips.c (file_mips_abi): Rename to mips_abi.
(mips_set_options): Remove "abi" field.
(mips_opts): Update accordingly. Replace all uses of mips_opts.abi
with mips_abi.
(mips_cpu): Remove.
(mips_arch_string, mips_arch_info): New vars.
(mips_tune_string, mips_tune_info): New vars.
(ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
(HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
(mips_isa_to_str, mips_cpu_to_str): Remove.
(mips_ip): If the selected architecture is a generic ISA rather
than a processor, only mention the ISA level in error messages.
(OPTION_MCPU): Remove.
(OPTION_FP64): New.
(md_longopts): Add -mfp64, remove -mcpu.
(mips_set_option_string): New fn.
(md_parse_option): Make -mipsN update file_mips_isa rather than
mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
Don't let -mgp32 and -mfp32 change the ABI.
(show): Move to end of file. Constify string argument.
(md_show_usage): Move to the end of the file. Read available
architectures from mips_cpu_info_table.
(mips_set_architecture): New fn.
(mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
is an alias for -march=mipsN. Don't change the ABI based on other
flags. Infer the register size from the ABI as well as the
architecture. Complain about more conflicting arguments.
Unify logic with GCC.
(s_mipsset): Don't change the ABI.
(mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
(mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
"mipsN"-type entries. Remove entries that vary only in the
manufacturer's prefix, or that have "000" replaced by "k".
Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
(mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
(mips_parse_cpu): New fn.
(mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
(mips_cpu_info_from_isa): Minor formatting tweak.
[gas/testsuite]
* gas/mips/mips-gp32-fp64.d,
* gas/mips/mips-gp32-fp64-pic.d: Add -mfp64.
2002-07-25 09:48:07 +00:00
|
|
|
mipsisa64 | mipsisa64el)
|
|
|
|
mips_cpu=mips64
|
|
|
|
;;
|
[ bfd/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* archures.c (bfd_mach_mipsisa64r2): New define.
* bfd-in2.h: Regenerate.
* aoutx.h (NAME(aout,machine_type)): Handle bfd_mach_mipsisa64r2.
* cpu-mips.c (I_mipsisa64r2): New enum value.
(arch_info_struct): Add entry for I_mipsisa64r2.
* elfxx-mips.c (_bfd_elf_mips_mach)
(_bfd_mips_elf_print_private_bfd_data): Handle E_MIPS_ARCH_64R2.
(mips_set_isa_flags): Add bfd_mach_mipsisa64r2 case.
(mips_mach_extensions): Add entry for bfd_mach_mipsisa64r2.
[ binutils/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* readelf.c (get_machine_flags): Handle E_MIPS_ARCH_64R2.
[ gas/Changelog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* configure.in (mipsisa64r2, mipsisa64r2el, mipsisa64r2*): New CPUs.
* configure: Regenerate.
* config/tc-mips.c (imm2_expr): New variable.
(md_assemble, mips16_ip): Initialize imm2_expr.
(ISA_HAS_64BIT_REGS, ISA_HAS_DROR, ISA_HAS_ROR): Add ISA_MIPS64R2.
(macro_build): Handle +A, +B, +C, +E, +F, +G, and +H format operands.
(macro): Handle M_DEXT and M_DINS.
(validate_mips_insn): Handle +E, +F, +G, +H, and +I format operands.
(mips_ip): Likewise.
(OPTION_MIPS64R2): New define.
(md_longopts): New entry for -mips64r2 (OPTION_MIPS64R2).
OPTION_ASE_BASE): Increase to compensate for OPTION_MIPS64R2.
(md_parse_option): Handle OPTION_MIPS64R2.
(s_mipsset): Handle setting "mips64r2" ISA.
(mips_cpu_info_table): Add mips64r2.
(md_show_usage): Document -mips64r2 option.
* doc/as.texinfo: Docuemnt -mips64r2 option.
* doc/c-mips.texi: Likewise.
[ gas/testsuite/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* gas/mips/cp0-names-mips64r2.d: New file.
* gas/mips/cp0sel-names-mips64r2.d: New file.
* gas/mips/elf_arch_mips64r2.d: New file.
* gas/mips/hwr-names-mips64r2.d: New file.
* gas/mips/mips32r2-ill-fp64.l: New file.
* gas/mips/mips32r2-ill-fp64.s: New file.
* gas/mips/mips64r2-ill.l: New file.
* gas/mips/mips64r2-ill.s: New file.
* gas/mips/mips64r2.d: New file.
* gas/mips/mips64r2.s: New file.
* gas/mips/mips.exp: Define "mips64r2" arch, and run new tests.
[ include/elf/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* mips.h (E_MIPS_ARCH_64R2): New define.
[ include/opcode/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* mips.h: Document +E, +F, +G, +H, and +I operand types.
Update documentation of I, +B and +C operand types.
(INSN_ISA64R2, ISA_MIPS64R2, CPU_MIPS64R2): New defines.
(M_DEXT, M_DINS): New enum values.
[ ld/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* ldmain.c (get_emulation): Ignore "-mips64r2".
[ ld/testsuite/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* ld-mips-elf/mips-elf-flags.exp: Add tests for combinations
with MIPS64r2.
[ opcodes/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* mips-dis.c (mips_arch_choices): Add entry for "mips64r2"
(print_insn_args): Add handing for +E, +F, +G, and +H.
* mips-opc.c (I65): New define for MIPS64r2.
(mips_builtin_opcodes): Add "dext", "dextm", "dextu", "dins",
"dinsm", "dinsu", "drotl", "drotr", "drotr32", "drotrv", "dsbh",
and "dshd" for MIPS64r2. Adjust "dror", "dror32", and "drorv" to
be supported on MIPS64r2.
2003-09-30 16:17:15 +00:00
|
|
|
mipsisa64r2 | mipsisa64r2el)
|
|
|
|
mips_cpu=mips64r2
|
|
|
|
;;
|
[gas/]
* doc/c-mips.texi: Remove -mcpu. Document -mabi.
* configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
(USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
* configure, config.in: Regenerate.
* config/tc-mips.c (file_mips_abi): Rename to mips_abi.
(mips_set_options): Remove "abi" field.
(mips_opts): Update accordingly. Replace all uses of mips_opts.abi
with mips_abi.
(mips_cpu): Remove.
(mips_arch_string, mips_arch_info): New vars.
(mips_tune_string, mips_tune_info): New vars.
(ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
(HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
(mips_isa_to_str, mips_cpu_to_str): Remove.
(mips_ip): If the selected architecture is a generic ISA rather
than a processor, only mention the ISA level in error messages.
(OPTION_MCPU): Remove.
(OPTION_FP64): New.
(md_longopts): Add -mfp64, remove -mcpu.
(mips_set_option_string): New fn.
(md_parse_option): Make -mipsN update file_mips_isa rather than
mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
Don't let -mgp32 and -mfp32 change the ABI.
(show): Move to end of file. Constify string argument.
(md_show_usage): Move to the end of the file. Read available
architectures from mips_cpu_info_table.
(mips_set_architecture): New fn.
(mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
is an alias for -march=mipsN. Don't change the ABI based on other
flags. Infer the register size from the ABI as well as the
architecture. Complain about more conflicting arguments.
Unify logic with GCC.
(s_mipsset): Don't change the ABI.
(mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
(mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
"mipsN"-type entries. Remove entries that vary only in the
manufacturer's prefix, or that have "000" replaced by "k".
Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
(mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
(mips_parse_cpu): New fn.
(mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
(mips_cpu_info_from_isa): Minor formatting tweak.
[gas/testsuite]
* gas/mips/mips-gp32-fp64.d,
* gas/mips/mips-gp32-fp64-pic.d: Add -mfp64.
2002-07-25 09:48:07 +00:00
|
|
|
mipstx39 | mipstx39el)
|
|
|
|
mips_cpu=r3900
|
|
|
|
;;
|
2002-10-14 06:59:06 +00:00
|
|
|
mips64vr | mips64vrel)
|
|
|
|
mips_cpu=vr4100
|
|
|
|
;;
|
[ bfd/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* archures.c (bfd_mach_mipsisa64r2): New define.
* bfd-in2.h: Regenerate.
* aoutx.h (NAME(aout,machine_type)): Handle bfd_mach_mipsisa64r2.
* cpu-mips.c (I_mipsisa64r2): New enum value.
(arch_info_struct): Add entry for I_mipsisa64r2.
* elfxx-mips.c (_bfd_elf_mips_mach)
(_bfd_mips_elf_print_private_bfd_data): Handle E_MIPS_ARCH_64R2.
(mips_set_isa_flags): Add bfd_mach_mipsisa64r2 case.
(mips_mach_extensions): Add entry for bfd_mach_mipsisa64r2.
[ binutils/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* readelf.c (get_machine_flags): Handle E_MIPS_ARCH_64R2.
[ gas/Changelog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* configure.in (mipsisa64r2, mipsisa64r2el, mipsisa64r2*): New CPUs.
* configure: Regenerate.
* config/tc-mips.c (imm2_expr): New variable.
(md_assemble, mips16_ip): Initialize imm2_expr.
(ISA_HAS_64BIT_REGS, ISA_HAS_DROR, ISA_HAS_ROR): Add ISA_MIPS64R2.
(macro_build): Handle +A, +B, +C, +E, +F, +G, and +H format operands.
(macro): Handle M_DEXT and M_DINS.
(validate_mips_insn): Handle +E, +F, +G, +H, and +I format operands.
(mips_ip): Likewise.
(OPTION_MIPS64R2): New define.
(md_longopts): New entry for -mips64r2 (OPTION_MIPS64R2).
OPTION_ASE_BASE): Increase to compensate for OPTION_MIPS64R2.
(md_parse_option): Handle OPTION_MIPS64R2.
(s_mipsset): Handle setting "mips64r2" ISA.
(mips_cpu_info_table): Add mips64r2.
(md_show_usage): Document -mips64r2 option.
* doc/as.texinfo: Docuemnt -mips64r2 option.
* doc/c-mips.texi: Likewise.
[ gas/testsuite/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* gas/mips/cp0-names-mips64r2.d: New file.
* gas/mips/cp0sel-names-mips64r2.d: New file.
* gas/mips/elf_arch_mips64r2.d: New file.
* gas/mips/hwr-names-mips64r2.d: New file.
* gas/mips/mips32r2-ill-fp64.l: New file.
* gas/mips/mips32r2-ill-fp64.s: New file.
* gas/mips/mips64r2-ill.l: New file.
* gas/mips/mips64r2-ill.s: New file.
* gas/mips/mips64r2.d: New file.
* gas/mips/mips64r2.s: New file.
* gas/mips/mips.exp: Define "mips64r2" arch, and run new tests.
[ include/elf/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* mips.h (E_MIPS_ARCH_64R2): New define.
[ include/opcode/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* mips.h: Document +E, +F, +G, +H, and +I operand types.
Update documentation of I, +B and +C operand types.
(INSN_ISA64R2, ISA_MIPS64R2, CPU_MIPS64R2): New defines.
(M_DEXT, M_DINS): New enum values.
[ ld/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* ldmain.c (get_emulation): Ignore "-mips64r2".
[ ld/testsuite/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* ld-mips-elf/mips-elf-flags.exp: Add tests for combinations
with MIPS64r2.
[ opcodes/ChangeLog ]
2003-09-30 Chris Demetriou <cgd@broadcom.com>
* mips-dis.c (mips_arch_choices): Add entry for "mips64r2"
(print_insn_args): Add handing for +E, +F, +G, and +H.
* mips-opc.c (I65): New define for MIPS64r2.
(mips_builtin_opcodes): Add "dext", "dextm", "dextu", "dins",
"dinsm", "dinsu", "drotl", "drotr", "drotr32", "drotrv", "dsbh",
and "dshd" for MIPS64r2. Adjust "dror", "dror32", and "drorv" to
be supported on MIPS64r2.
2003-09-30 16:17:15 +00:00
|
|
|
mipsisa32r2* | mipsisa64r2*)
|
[ bfd/ChangeLog ]
2002-12-30 Chris Demetriou <cgd@broadcom.com>
* aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mipsisa32r2 case.
* archures.c (bfd_mach_mipsisa32r2): New define.
* bfd-in2.h: Regenerate.
* cpu-mips.c (I_mipsisa32r2): New enum value.
(arch_info_struct): Add entry for I_mipsisa32r2.
* elfxx-mips.c (elf_mips_isa, _bfd_elf_mips_mach)
(_bfd_mips_elf_print_private_bfd_data): Handle E_MIPS_ARCH_32R2.
(_bfd_mips_elf_final_write_processing): Add
bfd_mach_mipsisa32r2 case.
(_bfd_mips_elf_merge_private_bfd_data): Handle merging of
binaries marked as using MIPS32 Release 2.
[ binutils/ChangeLog ]
2002-12-30 Chris Demetriou <cgd@broadcom.com>
* doc/binutils.texi (objdump): Note MIPS HWR (Hardware Register)
changes in MIPS -M options.
[ gas/ChangeLog ]
2002-12-30 Chris Demetriou <cgd@broadcom.com>
* configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
CPU variants.
* configure: Regenerate.
* config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
(macro_build): Handle "K" operand.
(macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
CPU_HAS_DROR and CPU_HAS_ROR are currently used.
(mips_ip): New variable "lastpos", and implement "+A", "+B",
and "+C" operands for MIPS32 Release 2 ins/ext instructions.
Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
(validate_mips_insn): Implement "+" as a way to extend the
allowed operands, and implement "K", "+A", "+B", and "+C"
operands.
(OPTION_MIPS32R2): New define.
(md_longopts): Add entry for OPTION_MIPS32R2.
(OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
(md_parse_option): Handle OPTION_MIPS32R2.
(s_mipsset): Reimplement handling of ".set mipsN" options
and add support for ".set mips32r2".
(mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
(md_show_usage): Document "-mips32r2" option.
* doc/as.texinfo: Document "-mips32r2" option.
* doc/c-mips.texi: Likewise.
[ gas/testsuite/ChangeLog ]
2002-12-30 Chris Demetriou <cgd@broadcom.com>
* gas/mips/cp0-names-mips32r2.d: New test.
* gas/mips/hwr-names-mips32r2.d: New test.
* gas/mips/hwr-names-numeric.d: New test.
* gas/mips/hwr-names.s: New test source file.
* gas/mips/mips32r2.d: New test.
* gas/mips/mips32r2.s: New test source file.
* gas/mips/mips32r2-ill.l: New test.
* gas/mips/mips32r2-ill.s: New test source file.
* gas/mips/mips.exp: Add mips32r2 architecture data array
entry. Run new tests mentioned above.
[ include/elf/ChangeLog ]
2002-12-30 Chris Demetriou <cgd@broadcom.com>
* mips.h (E_MIPS_ARCH_32R2): New define.
[ include/opcode/ChangeLog ]
2002-12-30 Chris Demetriou <cgd@broadcom.com>
* mips.h: Document "+" as the start of two-character operand
type names, and add new "K", "+A", "+B", and "+C" operand types.
(OP_MASK_INSMSB, OP_SH_INSMSB, OP_MASK_EXTMSB)
(OP_SH_EXTMSB, INSN_ISA32R2, ISA_MIPS32R2, CPU_MIPS32R2): New
defines.
[ opcodes/ChangeLog ]
2002-12-30 Chris Demetriou <cgd@broadcom.com>
* mips-dis.c (mips_cp0_names_mips3264r2, mips_hwr_names_numeric)
(mips_hwr_names_mips3264r2): New arrays.
(mips_arch_choice): New "hwr_names" member.
(mips_arch_choices): Adjust for structure change, and add a new
entry for "mips32r2" ISA.
(mips_hwr_names): New variable.
(set_default_mips_dis_options): Set mips_hwr_names.
(parse_mips_dis_option): New "hwr-names" option which sets
mips_hwr_names, and adjust "reg-names=ARCH" to set mips_hwr_names.
(print_insn_arg): Change return type to "int"
and use that to indicate number of characters consumed.
Add support for "+" operand extension character, "+A", "+B",
"+C", and "K" operands.
(print_insn_mips): Adjust for changes to print_insn_arg.
(print_mips_disassembler_options): Adjust for "hwr-names"
addition and "reg-names" change.
* mips-opc (I33): New define (shorthand for INSN_ISA32R2).
(mips_builtin_opcodes): Note that "nop" and "ssnop" are special
forms of "sll". Add new MIPS32 Release 2 instructions: ehb,
di, ei, ext, ins, jr.hb, jalr.hb, mfhc1, mfhc2, mthc1, mthc2,
rdhwr, rdpgpr, seb, seh, synci, wrpgpr, wsbh.
Note that hardware rotate instructions (ror, rorv) can be
used on MIPS32 Release 2, and add the official mnemonics
for them (rotr, rotrv) and the similar "rotl" mnemonic for
left-rotate.
2002-12-31 07:29:29 +00:00
|
|
|
changequote(,)dnl
|
|
|
|
mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
|
|
|
|
changequote([,])dnl
|
|
|
|
;;
|
[gas/]
* doc/c-mips.texi: Remove -mcpu. Document -mabi.
* configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
(USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
* configure, config.in: Regenerate.
* config/tc-mips.c (file_mips_abi): Rename to mips_abi.
(mips_set_options): Remove "abi" field.
(mips_opts): Update accordingly. Replace all uses of mips_opts.abi
with mips_abi.
(mips_cpu): Remove.
(mips_arch_string, mips_arch_info): New vars.
(mips_tune_string, mips_tune_info): New vars.
(ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
(HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
(mips_isa_to_str, mips_cpu_to_str): Remove.
(mips_ip): If the selected architecture is a generic ISA rather
than a processor, only mention the ISA level in error messages.
(OPTION_MCPU): Remove.
(OPTION_FP64): New.
(md_longopts): Add -mfp64, remove -mcpu.
(mips_set_option_string): New fn.
(md_parse_option): Make -mipsN update file_mips_isa rather than
mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
Don't let -mgp32 and -mfp32 change the ABI.
(show): Move to end of file. Constify string argument.
(md_show_usage): Move to the end of the file. Read available
architectures from mips_cpu_info_table.
(mips_set_architecture): New fn.
(mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
is an alias for -march=mipsN. Don't change the ABI based on other
flags. Infer the register size from the ABI as well as the
architecture. Complain about more conflicting arguments.
Unify logic with GCC.
(s_mipsset): Don't change the ABI.
(mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
(mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
"mipsN"-type entries. Remove entries that vary only in the
manufacturer's prefix, or that have "000" replaced by "k".
Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
(mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
(mips_parse_cpu): New fn.
(mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
(mips_cpu_info_from_isa): Minor formatting tweak.
[gas/testsuite]
* gas/mips/mips-gp32-fp64.d,
* gas/mips/mips-gp32-fp64-pic.d: Add -mfp64.
2002-07-25 09:48:07 +00:00
|
|
|
mips64* | mipsisa64* | mipsisa32*)
|
|
|
|
changequote(,)dnl
|
|
|
|
mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
|
|
|
|
changequote([,])dnl
|
|
|
|
;;
|
|
|
|
*)
|
2008-08-24 03:13:05 +00:00
|
|
|
AC_MSG_ERROR($target_cpu isn't a supported MIPS CPU name)
|
[gas/]
* doc/c-mips.texi: Remove -mcpu. Document -mabi.
* configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
(USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
* configure, config.in: Regenerate.
* config/tc-mips.c (file_mips_abi): Rename to mips_abi.
(mips_set_options): Remove "abi" field.
(mips_opts): Update accordingly. Replace all uses of mips_opts.abi
with mips_abi.
(mips_cpu): Remove.
(mips_arch_string, mips_arch_info): New vars.
(mips_tune_string, mips_tune_info): New vars.
(ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
(HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
(mips_isa_to_str, mips_cpu_to_str): Remove.
(mips_ip): If the selected architecture is a generic ISA rather
than a processor, only mention the ISA level in error messages.
(OPTION_MCPU): Remove.
(OPTION_FP64): New.
(md_longopts): Add -mfp64, remove -mcpu.
(mips_set_option_string): New fn.
(md_parse_option): Make -mipsN update file_mips_isa rather than
mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
Don't let -mgp32 and -mfp32 change the ABI.
(show): Move to end of file. Constify string argument.
(md_show_usage): Move to the end of the file. Read available
architectures from mips_cpu_info_table.
(mips_set_architecture): New fn.
(mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
is an alias for -march=mipsN. Don't change the ABI based on other
flags. Infer the register size from the ABI as well as the
architecture. Complain about more conflicting arguments.
Unify logic with GCC.
(s_mipsset): Don't change the ABI.
(mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
(mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
"mipsN"-type entries. Remove entries that vary only in the
manufacturer's prefix, or that have "000" replaced by "k".
Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
(mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
(mips_parse_cpu): New fn.
(mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
(mips_cpu_info_from_isa): Minor formatting tweak.
[gas/testsuite]
* gas/mips/mips-gp32-fp64.d,
* gas/mips/mips-gp32-fp64-pic.d: Add -mfp64.
2002-07-25 09:48:07 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
# See whether it's appropriate to set E_MIPS_ABI_O32 for o32
|
|
|
|
# binaries. It's a GNU extension that some OSes don't understand.
|
|
|
|
# The value only matters on ELF targets.
|
|
|
|
case ${target} in
|
|
|
|
*-*-irix*)
|
|
|
|
use_e_mips_abi_o32=0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
use_e_mips_abi_o32=1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
# Decide whether to generate 32-bit or 64-bit code by default.
|
|
|
|
# Used to resolve -march=from-abi when an embedded ABI is selected.
|
|
|
|
case ${target} in
|
|
|
|
mips64*-*-* | mipsisa64*-*-*)
|
|
|
|
mips_default_64bit=1
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
mips_default_64bit=0
|
|
|
|
;;
|
|
|
|
esac
|
2003-05-07 05:10:45 +00:00
|
|
|
# Decide which ABI to target by default.
|
|
|
|
case ${target} in
|
bfd/
2010-12-23 Robert Millan <rmh@gnu.org>
* config.bfd: Recognize mips-freebsd and mips-kfreebsd-gnu.
* configure.host: Likewise.
* configure.in: Support for `bfd_elf32_ntradbigmips_freebsd_vec',
`bfd_elf32_ntradlittlemips_freebsd_vec',
`bfd_elf32_tradbigmips_freebsd_vec',
`bfd_elf32_tradlittlemips_freebsd_vec',
`bfd_elf64_tradbigmips_freebsd_vec' and
`bfd_elf64_tradlittlemips_freebsd_vec'.
* configure: Regenerate.
* elf32-mips.c: New target for FreeBSD support
(same as traditional MIPS but overrides ELF_OSABI
with ELFOSABI_FREEBSD).
* elf64-mips.c: Likewise.
* elfn32-mips.c: Likewise.
* targets.c (_bfd_target_vector): Add
`bfd_elf32_ntradbigmips_freebsd_vec',
`bfd_elf32_ntradlittlemips_freebsd_vec',
`bfd_elf32_tradbigmips_freebsd_vec',
`bfd_elf32_tradlittlemips_freebsd_vec',
`bfd_elf64_tradbigmips_freebsd_vec' and
`bfd_elf64_tradlittlemips_freebsd_vec'.
ld/
2010-12-14 Robert Millan <rmh@gnu.org>
* configure.tgt: Recognize mips-freebsd and mips-kfreebsd-gnu.
* emulparams/elf32btsmip_fbsd.sh: New file.
* emulparams/elf32btsmipn32_fbsd.sh: Likewise.
* emulparams/elf32ltsmip_fbsd.sh: Likewise.
* emulparams/elf32ltsmipn32_fbsd.sh: Likewise.
* emulparams/elf64btsmip_fbsd.sh: Likewise.
* emulparams/elf64ltsmip_fbsd.sh: Likewise.
* Makefile.am: Add build rules for `eelf32btsmip_fbsd.c',
`eelf32btsmipn32_fbsd.c', `eelf32ltsmip_fbsd.c',
`eelf32ltsmipn32_fbsd.c', `eelf64btsmip_fbsd.c' and
`eelf64ltsmip_fbsd.c'.
* Makefile.in: Regenerate.
gas/
2010-12-19 Robert Millan <rmh@gnu.org>
Richard Sandiford <rdsandiford@googlemail.com>
* config/tc-mips.c (ELF_TARGET): New macro. Generates target
names accordingly to whether TE_FreeBSD and whether TE_TMIPS
are defined.
(mips_target_format): Refactor code using ELF_TARGET().
(support_64bit_objects): Likewise.
* configure.in: Recognize mips-freebsd and mips-kfreebsd-gnu.
* configure.tgt: Likewise.
* configure: Regenerate.
binutils/testsuite/
* binutils-all/readelf.exp: Handle MIPS FreeBSD targets.
gas/testsuite/
* gas/mips/e32el-rel2.d: Accept any file format.
* gas/mips/elf-rel.d: Likewise.
* gas/mips/elf-rel2.d: Likewise.
* gas/mips/elf-rel3.d: Likewise.
* gas/mips/elfel-rel.d: Likewise.
* gas/mips/elfel-rel2.d: Likewise.
* gas/mips/elfel-rel3.d: Likewise.
* gas/mips/ldstla-32-mips3-shared.d: Likewise.
* gas/mips/ldstla-32-mips3.d: Likewise.
* gas/mips/ldstla-32-shared.d: Likewise.
* gas/mips/ldstla-32.d: Likewise.
* gas/mips/ldstla-n64-shared.d: Likewise.
* gas/mips/ldstla-n64.d: Likewise.
* gas/mips/noat-1.d: Likewise.
* gas/mips/set-arch.d: Likewise.
* gas/mips/tls-o32.d: Likewise.
ld/testsuite/
* ld-mips-elf/mips-elf-flags.exp: Handle FreeBSD targets.
* ld-mips-elf/mips-elf.exp: Likewise.
* ld-mips-elf/mips16-call-global.d: Accept any file format.
* ld-mips-elf/mips16-intermix.d: Likewise.
2010-12-31 11:01:00 +00:00
|
|
|
mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* | mips64*-kfreebsd*-gnu)
|
2003-05-07 05:10:45 +00:00
|
|
|
mips_default_abi=N32_ABI
|
|
|
|
;;
|
bfd/
2010-12-23 Robert Millan <rmh@gnu.org>
* config.bfd: Recognize mips-freebsd and mips-kfreebsd-gnu.
* configure.host: Likewise.
* configure.in: Support for `bfd_elf32_ntradbigmips_freebsd_vec',
`bfd_elf32_ntradlittlemips_freebsd_vec',
`bfd_elf32_tradbigmips_freebsd_vec',
`bfd_elf32_tradlittlemips_freebsd_vec',
`bfd_elf64_tradbigmips_freebsd_vec' and
`bfd_elf64_tradlittlemips_freebsd_vec'.
* configure: Regenerate.
* elf32-mips.c: New target for FreeBSD support
(same as traditional MIPS but overrides ELF_OSABI
with ELFOSABI_FREEBSD).
* elf64-mips.c: Likewise.
* elfn32-mips.c: Likewise.
* targets.c (_bfd_target_vector): Add
`bfd_elf32_ntradbigmips_freebsd_vec',
`bfd_elf32_ntradlittlemips_freebsd_vec',
`bfd_elf32_tradbigmips_freebsd_vec',
`bfd_elf32_tradlittlemips_freebsd_vec',
`bfd_elf64_tradbigmips_freebsd_vec' and
`bfd_elf64_tradlittlemips_freebsd_vec'.
ld/
2010-12-14 Robert Millan <rmh@gnu.org>
* configure.tgt: Recognize mips-freebsd and mips-kfreebsd-gnu.
* emulparams/elf32btsmip_fbsd.sh: New file.
* emulparams/elf32btsmipn32_fbsd.sh: Likewise.
* emulparams/elf32ltsmip_fbsd.sh: Likewise.
* emulparams/elf32ltsmipn32_fbsd.sh: Likewise.
* emulparams/elf64btsmip_fbsd.sh: Likewise.
* emulparams/elf64ltsmip_fbsd.sh: Likewise.
* Makefile.am: Add build rules for `eelf32btsmip_fbsd.c',
`eelf32btsmipn32_fbsd.c', `eelf32ltsmip_fbsd.c',
`eelf32ltsmipn32_fbsd.c', `eelf64btsmip_fbsd.c' and
`eelf64ltsmip_fbsd.c'.
* Makefile.in: Regenerate.
gas/
2010-12-19 Robert Millan <rmh@gnu.org>
Richard Sandiford <rdsandiford@googlemail.com>
* config/tc-mips.c (ELF_TARGET): New macro. Generates target
names accordingly to whether TE_FreeBSD and whether TE_TMIPS
are defined.
(mips_target_format): Refactor code using ELF_TARGET().
(support_64bit_objects): Likewise.
* configure.in: Recognize mips-freebsd and mips-kfreebsd-gnu.
* configure.tgt: Likewise.
* configure: Regenerate.
binutils/testsuite/
* binutils-all/readelf.exp: Handle MIPS FreeBSD targets.
gas/testsuite/
* gas/mips/e32el-rel2.d: Accept any file format.
* gas/mips/elf-rel.d: Likewise.
* gas/mips/elf-rel2.d: Likewise.
* gas/mips/elf-rel3.d: Likewise.
* gas/mips/elfel-rel.d: Likewise.
* gas/mips/elfel-rel2.d: Likewise.
* gas/mips/elfel-rel3.d: Likewise.
* gas/mips/ldstla-32-mips3-shared.d: Likewise.
* gas/mips/ldstla-32-mips3.d: Likewise.
* gas/mips/ldstla-32-shared.d: Likewise.
* gas/mips/ldstla-32.d: Likewise.
* gas/mips/ldstla-n64-shared.d: Likewise.
* gas/mips/ldstla-n64.d: Likewise.
* gas/mips/noat-1.d: Likewise.
* gas/mips/set-arch.d: Likewise.
* gas/mips/tls-o32.d: Likewise.
ld/testsuite/
* ld-mips-elf/mips-elf-flags.exp: Handle FreeBSD targets.
* ld-mips-elf/mips-elf.exp: Likewise.
* ld-mips-elf/mips16-call-global.d: Accept any file format.
* ld-mips-elf/mips16-intermix.d: Likewise.
2010-12-31 11:01:00 +00:00
|
|
|
mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
|
2003-05-07 05:10:45 +00:00
|
|
|
mips_default_abi=O32_ABI
|
|
|
|
;;
|
2005-04-14 16:55:49 +00:00
|
|
|
mips64*-openbsd*)
|
|
|
|
mips_default_abi=N64_ABI
|
|
|
|
;;
|
2003-05-07 05:10:45 +00:00
|
|
|
*)
|
|
|
|
mips_default_abi=NO_ABI
|
|
|
|
;;
|
|
|
|
esac
|
[gas/]
* doc/c-mips.texi: Remove -mcpu. Document -mabi.
* configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
(USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
* configure, config.in: Regenerate.
* config/tc-mips.c (file_mips_abi): Rename to mips_abi.
(mips_set_options): Remove "abi" field.
(mips_opts): Update accordingly. Replace all uses of mips_opts.abi
with mips_abi.
(mips_cpu): Remove.
(mips_arch_string, mips_arch_info): New vars.
(mips_tune_string, mips_tune_info): New vars.
(ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
(HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
(mips_isa_to_str, mips_cpu_to_str): Remove.
(mips_ip): If the selected architecture is a generic ISA rather
than a processor, only mention the ISA level in error messages.
(OPTION_MCPU): Remove.
(OPTION_FP64): New.
(md_longopts): Add -mfp64, remove -mcpu.
(mips_set_option_string): New fn.
(md_parse_option): Make -mipsN update file_mips_isa rather than
mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
Don't let -mgp32 and -mfp32 change the ABI.
(show): Move to end of file. Constify string argument.
(md_show_usage): Move to the end of the file. Read available
architectures from mips_cpu_info_table.
(mips_set_architecture): New fn.
(mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
is an alias for -march=mipsN. Don't change the ABI based on other
flags. Infer the register size from the ABI as well as the
architecture. Complain about more conflicting arguments.
Unify logic with GCC.
(s_mipsset): Don't change the ABI.
(mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
(mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
"mipsN"-type entries. Remove entries that vary only in the
manufacturer's prefix, or that have "000" replaced by "k".
Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
(mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
(mips_parse_cpu): New fn.
(mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
(mips_cpu_info_from_isa): Minor formatting tweak.
[gas/testsuite]
* gas/mips/mips-gp32-fp64.d,
* gas/mips/mips-gp32-fp64-pic.d: Add -mfp64.
2002-07-25 09:48:07 +00:00
|
|
|
AC_DEFINE_UNQUOTED(MIPS_CPU_STRING_DEFAULT, "$mips_cpu",
|
|
|
|
[Default CPU for MIPS targets. ])
|
|
|
|
AC_DEFINE_UNQUOTED(USE_E_MIPS_ABI_O32, $use_e_mips_abi_o32,
|
|
|
|
[Allow use of E_MIPS_ABI_O32 on MIPS targets. ])
|
|
|
|
AC_DEFINE_UNQUOTED(MIPS_DEFAULT_64BIT, $mips_default_64bit,
|
|
|
|
[Generate 64-bit code by default on MIPS targets. ])
|
2003-05-07 05:10:45 +00:00
|
|
|
AC_DEFINE_UNQUOTED(MIPS_DEFAULT_ABI, $mips_default_abi,
|
|
|
|
[Choose a default ABI for MIPS targets. ])
|
[gas/]
* doc/c-mips.texi: Remove -mcpu. Document -mabi.
* configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
(USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
* configure, config.in: Regenerate.
* config/tc-mips.c (file_mips_abi): Rename to mips_abi.
(mips_set_options): Remove "abi" field.
(mips_opts): Update accordingly. Replace all uses of mips_opts.abi
with mips_abi.
(mips_cpu): Remove.
(mips_arch_string, mips_arch_info): New vars.
(mips_tune_string, mips_tune_info): New vars.
(ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
(HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
(mips_isa_to_str, mips_cpu_to_str): Remove.
(mips_ip): If the selected architecture is a generic ISA rather
than a processor, only mention the ISA level in error messages.
(OPTION_MCPU): Remove.
(OPTION_FP64): New.
(md_longopts): Add -mfp64, remove -mcpu.
(mips_set_option_string): New fn.
(md_parse_option): Make -mipsN update file_mips_isa rather than
mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
Don't let -mgp32 and -mfp32 change the ABI.
(show): Move to end of file. Constify string argument.
(md_show_usage): Move to the end of the file. Read available
architectures from mips_cpu_info_table.
(mips_set_architecture): New fn.
(mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
is an alias for -march=mipsN. Don't change the ABI based on other
flags. Infer the register size from the ABI as well as the
architecture. Complain about more conflicting arguments.
Unify logic with GCC.
(s_mipsset): Don't change the ABI.
(mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
(mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
"mipsN"-type entries. Remove entries that vary only in the
manufacturer's prefix, or that have "000" replaced by "k".
Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
(mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
(mips_parse_cpu): New fn.
(mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
(mips_cpu_info_from_isa): Minor formatting tweak.
[gas/testsuite]
* gas/mips/mips-gp32-fp64.d,
* gas/mips/mips-gp32-fp64-pic.d: Add -mfp64.
2002-07-25 09:48:07 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
1999-05-03 07:29:11 +00:00
|
|
|
# Do we need the opcodes library?
|
|
|
|
case ${cpu_type} in
|
2007-03-15 14:31:24 +00:00
|
|
|
vax | tic30)
|
1999-05-03 07:29:11 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
need_opcodes=yes
|
|
|
|
|
|
|
|
case "${enable_shared}" in
|
|
|
|
yes) shared_opcodes=true ;;
|
|
|
|
*opcodes*) shared_opcodes=true ;;
|
|
|
|
*) shared_opcodes=false ;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Any other special object files needed ?
|
|
|
|
case ${cpu_type} in
|
2005-09-30 15:05:07 +00:00
|
|
|
|
|
|
|
bfin)
|
|
|
|
echo ${extra_objects} | grep -s "bfin-parse.o"
|
|
|
|
if test $? -ne 0 ; then
|
|
|
|
extra_objects="$extra_objects bfin-parse.o"
|
|
|
|
fi
|
|
|
|
|
2012-05-17 15:13:28 +00:00
|
|
|
echo ${extra_objects} | grep -s "bfin-lex-wrapper.o"
|
2005-09-30 15:05:07 +00:00
|
|
|
if test $? -ne 0 ; then
|
2012-05-17 15:13:28 +00:00
|
|
|
extra_objects="$extra_objects bfin-lex-wrapper.o"
|
2005-09-30 15:05:07 +00:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
bfd:
* Makefile.am (ALL_MACHINES): Add cpu-epiphany.lo .
(ALL_MACHINES_CFILES): Add cpu-epiphany.c .
(BFD32_BACKENDS): Add elf32-epiphany.lo .
(BFD32_BACKENDS_CFILES): Add elf32-epiphany.c .
* Makefile.in, bfd-in2.h, configure, libbfd.h: Regenerate.
* archures.c (bfd_arch_epiphany): Add.
(bfd_mach_epiphany16, bfd_mach_epiphany32): Define.
(bfd_epiphany_arch): Declare.
(bfd_archures_list): Add &bfd_epiphany_arch.
* config.bfd (epiphany-*-elf): New target case.
* configure.in (bfd_elf32_epiphany_vec): New target vector case.
* reloc.c (BFD_RELOC_EPIPHANY_SIMM8): New relocation.
(BFD_RELOC_EPIPHANY_SIMM24, BFD_RELOC_EPIPHANY_HIGH): Likewise.
(BFD_RELOC_EPIPHANY_LOW, BFD_RELOC_EPIPHANY_SIMM11): Likewise.
(BFD_RELOC_EPIPHANY_IMM11, BFD_RELOC_EPIPHANY_IMM8): Likewise.
* targets.c (bfd_elf32_epiphany_vec): Declare.
(_bfd_target_vector): Add bfd_elf32_epiphany_vec.
* po/SRC-POTFILES.in, po/bfd.pot: Regenerate.
* cpu-epiphany.c, elf32-epiphany.c: New files.
binutils:
* readelf.c (include "elf/epiphany.h")
(guess_is_rela, dump_relocation): Handle EM_ADAPTEVA_EPIPHANY.
(get_machine_name, is_32bit_abs_reloc, is_32bit_pcrel_reloc): Likewise.
(is_16bit_abs_reloc, is_none_reloc): Likewise.
* po/binutils.pot: Regenerate.
cpu:
* cpu/epiphany.cpu, cpu/epiphany.opc: New files.
gas:
* NEWS: Mention addition of Adapteva Epiphany support.
* config/tc-epiphany.c, config/tc-epiphany.h: New files.
* Makefile.am (TARGET_CPU_CFILES): Add config/tc-epiphany.c .
(TARGET_CPU_HFILES): Add config/tc-epiphany.h .
* Makefile.in, configure, doc/Makefile.in, po/POTFILES.in: Regenerate.
* configure.in: Also set using_cgen for epiphany.
* configure.tgt: Handle epiphany.
* doc/Makefile.am (CPU_DOCS): Add c-epiphany.texi .
* doc/all.texi: Set EPIPHANY.
* doc/as.texinfo: Add EPIPHANY-specific text.
* doc/c-epiphany.texi: New file.
* po/gas.pot: Regenerate.
gas/testsuite:
* gas/epiphany: New directory.
include:
* dis-asm.h (print_insn_epiphany): Declare.
* elf/epiphany.h: New file.
* elf/common.h (EM_ADAPTEVA_EPIPHANY): Define.
ld:
* NEWS: Mention addition of Adapteva Epiphany support.
* Makefile.am (ALL_EMULATION_SOURCES): Add eelf32epiphany.c .
(eelf32epiphany.c): New rule.
* Makefile.in: Regenerate.
* configure.tgt: Handle epiphany-*-elf.
* po/ld.pot: Regenerate.
* testsuite/ld-srec/srec.exp: xfail epiphany.
* emulparams/elf32epiphany.sh: New file.
opcodes:
* Makefile.am (HFILES): Add epiphany-desc.h and epiphany-opc.h .
(TARGET_LIBOPCODES_CFILES): Add epiphany-asm.c, epiphany-desc.c,
epiphany-dis.c, epiphany-ibld.c and epiphany-opc.c .
(CLEANFILES): Add stamp-epiphany.
(EPIPHANY_DEPS): Set. Make CGEN-generated Epiphany files depend on it.
(stamp-epiphany): New rule.
* Makefile.in, configure, po/POTFILES.in, po/opcodes.pot: Regenerate.
* configure.in: Handle bfd_epiphany_arch.
* disassemble.c (ARCH_epiphany): Define.
(disassembler): Handle bfd_arch_epiphany.
* epiphany-asm.c, epiphany-desc.c, epiphany-desc.h: New files.
* epiphany-dis.c, epiphany-ibld.c, epiphany-opc.c: Likewise.
* epiphany-opc.h: Likewise.
2011-10-25 11:18:16 +00:00
|
|
|
epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | openrisc)
|
1999-05-03 07:29:11 +00:00
|
|
|
using_cgen=yes
|
|
|
|
;;
|
|
|
|
|
ChangeLog:
2005-07-14 Jim Blandy <jimb@redhat.com>
* configure.in: Add cases for Renesas m32c.
* configure: Regenerated.
bfd/ChangeLog:
2005-07-14 Jim Blandy <jimb@redhat.com>
Add support for m32c-*-elf (Renesas m32c and m16c).
* Makefile.am (ALL_MACHINES): Add cpu-m32c.lo.
(ALL_MACHINES_CFILES): Add cpu-m32c.c.
(BFD32_BACKENDS): Add elf32-m32c.lo.
(BFD32_BACKENDS_CFILES): Add elf32-m32c.c.
(cpu-m32c.lo, elf32-m32c.lo): New rules, generated by 'make dep-am'.
* Makefile.in: Regenerated.
* archures.c (bfd_arch_m32c, bfd_mach_m16c, bfd_mach_m32c): New
arch and mach codes.
(bfd_m32c_arch): New arch info object.
(bfd_archures_list): List bfd_m32c_arch.
* bfd-in2.h: Regenerated.
* config.bfd: Add case for the m32c.
* configure.in: Add case for the m32c.
* configure: Regenerated.
* cpu-m32c.c, elf32-m32c.c: New files.
* libbfd.h: Regenerated.
* targets.c (bfd_elf32_m32c_vec): Declare.
(_bfd_target_vector): List bfd_elf32_m32c_vec.
binutils/ChangeLog:
2005-07-14 Jim Blandy <jimb@redhat.com>
* readelf.c: #include "elf/m32c.h"
(guess_is_rela, dump_relocations, get_machine_name): Add cases for
EM_M32C.
* Makefile.am (readelf.o): Update dependencies.
* Makefile.in: Regenerated.
cpu/ChangeLog:
2005-07-14 Jim Blandy <jimb@redhat.com>
* m32c.cpu, m32c.opc: Machine description for the Renesas M32C.
gas/ChangeLog:
2005-07-14 Jim Blandy <jimb@redhat.com>
Add support for the Renesas M32C.
* Makefile.am (CPU_TYPES): List m32c.
(TARGET_CPU_CFILES): List config/tc-m32c.c.
(TARGET_CPU_HFILES): List config/tc-m32c.h.
* configure.in: Add case for m32c.
* configure.tgt: Add cases for m32c and m32c-*-elf.
* configure: Regenerated.
* config/tc-m32c.c, config/tc-m32c.h: New files.
* doc/Makefile.am (CPU_DOCS): Add c-m32c.texi.
* doc/Makefile.in: Regenerated.
* doc/all.texi: Set M32C.
* doc/as.texinfo: Add text for the M32C-specific options and line
comment characters, and refer to c-m32c.texi.
* doc/c-m32c.texi: New file.
include/ChangeLog:
2005-07-14 Jim Blandy <jimb@redhat.com>
* dis-asm.h (print_insn_m32c): New declaration.
include/elf/ChangeLog:
2005-07-14 Jim Blandy <jimb@redhat.com>
Add support for Renesas M32C and M16C.
* common.h (EM_M32C): New machine number.
* m32c.h: New file.
ld/ChangeLog:
2005-07-14 Jim Blandy <jimb@redhat.com>
Add support for the Renesas M32C and M16C.
* Makefile.am (ALL_EMULATIONS): Add eelf32m32c.o.
(eelf32m32c.c): New target.
* Makefile.in: Regenerated.
* configure.tgt: Add case for m32c-*-elf.
* emulparams/elf32m32c.sh: New file.
opcodes/ChangeLog:
2005-07-14 Jim Blandy <jimb@redhat.com>
Add support for the Renesas M32C and M16C.
* m32c-asm.c, m32c-desc.c, m32c-dis.c, m32c-ibld.c, m32c-opc.c: New.
* m32c-desc.h, m32c-opc.h: New.
* Makefile.am (HFILES): List m32c-desc.h and m32c-opc.h.
(CFILES): List m32c-asm.c, m32c-desc.c, m32c-dis.c, m32c-ibld.c,
m32c-opc.c.
(ALL_MACHINES): List m32c-asm.lo, m32c-desc.lo, m32c-dis.lo,
m32c-ibld.lo, m32c-opc.lo.
(CLEANFILES): List stamp-m32c.
(M32C_DEPS): List stamp-m32c, if CGEN_MAINT.
(CGEN_CPUS): Add m32c.
(m32c-asm.c, m32c-desc.c, m32c-dis.c, m32c-ibld.c, m32c-opc.c)
(m32c-desc.h, m32c-opc.h): Depend on M32C_DEPS.
(m32c_opc_h): New variable.
(stamp-m32c, m32c-asm.lo, m32c-desc.lo, m32c-dis.lo, m32c-ibld.lo)
(m32c-opc.lo): New rules.
* Makefile.in: Regenerated.
* configure.in: Add case for bfd_m32c_arch.
* configure: Regenerated.
* disassemble.c (ARCH_m32c): New.
[ARCH_m32c]: #include "m32c-desc.h".
(disassembler) [ARCH_m32c]: Add case for bfd_arch_m32c.
(disassemble_init_for_target) [ARCH_m32c]: Same.
* cgen-ops.h, cgen-types.h: New files.
* Makefile.am (HFILES): List them.
* Makefile.in: Regenerated.
2005-07-14 22:52:28 +00:00
|
|
|
m32c)
|
|
|
|
using_cgen=yes
|
|
|
|
;;
|
2002-06-18 21:15:21 +00:00
|
|
|
frv)
|
|
|
|
using_cgen=yes
|
|
|
|
;;
|
1999-05-03 07:29:11 +00:00
|
|
|
m68k)
|
|
|
|
case ${extra_objects} in
|
|
|
|
*m68k-parse.o*) ;;
|
|
|
|
*) extra_objects="$extra_objects m68k-parse.o" ;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
|
2007-02-05 20:10:25 +00:00
|
|
|
mep)
|
|
|
|
using_cgen=yes
|
|
|
|
;;
|
|
|
|
|
1999-05-03 07:29:11 +00:00
|
|
|
mips)
|
2006-06-01 12:21:05 +00:00
|
|
|
echo ${extra_objects} | grep -s "itbl-parse.o"
|
1999-05-03 07:29:11 +00:00
|
|
|
if test $? -ne 0 ; then
|
|
|
|
extra_objects="$extra_objects itbl-parse.o"
|
|
|
|
fi
|
|
|
|
|
2012-05-17 15:13:28 +00:00
|
|
|
echo ${extra_objects} | grep -s "itbl-lex-wrapper.o"
|
1999-05-03 07:29:11 +00:00
|
|
|
if test $? -ne 0 ; then
|
2012-05-17 15:13:28 +00:00
|
|
|
extra_objects="$extra_objects itbl-lex-wrapper.o"
|
1999-05-03 07:29:11 +00:00
|
|
|
fi
|
|
|
|
|
2006-06-01 12:21:05 +00:00
|
|
|
echo ${extra_objects} | grep -s "itbl-ops.o"
|
1999-05-03 07:29:11 +00:00
|
|
|
if test $? -ne 0 ; then
|
|
|
|
extra_objects="$extra_objects itbl-ops.o"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
2005-12-12 11:25:08 +00:00
|
|
|
mt)
|
2005-06-07 21:13:14 +00:00
|
|
|
using_cgen=yes
|
|
|
|
;;
|
|
|
|
|
2001-10-17 05:38:42 +00:00
|
|
|
i386 | s390 | sparc)
|
1999-05-03 07:29:11 +00:00
|
|
|
if test $this_target = $target ; then
|
|
|
|
AC_DEFINE_UNQUOTED(DEFAULT_ARCH, "${arch}", [Default architecture.])
|
|
|
|
fi
|
|
|
|
;;
|
2001-12-08 03:46:03 +00:00
|
|
|
|
2011-11-02 03:09:11 +00:00
|
|
|
rl78)
|
|
|
|
echo ${extra_objects} | grep -s "rl78-parse.o"
|
|
|
|
if test $? -ne 0 ; then
|
|
|
|
extra_objects="$extra_objects rl78-parse.o"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
2009-09-29 14:17:19 +00:00
|
|
|
rx)
|
|
|
|
echo ${extra_objects} | grep -s "rx-parse.o"
|
|
|
|
if test $? -ne 0 ; then
|
|
|
|
extra_objects="$extra_objects rx-parse.o"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
2001-12-08 03:46:03 +00:00
|
|
|
xstormy16)
|
|
|
|
using_cgen=yes
|
|
|
|
;;
|
|
|
|
|
2006-02-17 14:36:28 +00:00
|
|
|
xc16x)
|
|
|
|
using_cgen=yes
|
|
|
|
;;
|
|
|
|
|
2003-04-01 15:50:31 +00:00
|
|
|
xtensa)
|
|
|
|
echo ${extra_objects} | grep -s "xtensa-relax.o"
|
|
|
|
if test $? -ne 0 ; then
|
|
|
|
extra_objects="$extra_objects xtensa-relax.o"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
1999-05-03 07:29:11 +00:00
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if test $using_cgen = yes ; then
|
|
|
|
case "x${extra_objects}" in
|
|
|
|
*cgen.o*) ;;
|
|
|
|
*) extra_objects="$extra_objects cgen.o" ;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
|
|
|
# See if we really can support this configuration with the emulation code.
|
|
|
|
|
|
|
|
if test $this_target = $target ; then
|
|
|
|
obj_format=$fmt
|
|
|
|
te_file=$em
|
|
|
|
fi
|
|
|
|
|
2009-09-07 09:15:31 +00:00
|
|
|
case ${te_file} in
|
|
|
|
vms) extra_objects="$extra_objects te-vms.o" ;;
|
|
|
|
esac
|
2012-04-06 16:49:02 +00:00
|
|
|
|
1999-05-03 07:29:11 +00:00
|
|
|
# From target name and format, produce a list of supported emulations.
|
|
|
|
|
|
|
|
case ${generic_target}-${fmt} in
|
|
|
|
mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
|
bfd/
2010-12-23 Robert Millan <rmh@gnu.org>
* config.bfd: Recognize mips-freebsd and mips-kfreebsd-gnu.
* configure.host: Likewise.
* configure.in: Support for `bfd_elf32_ntradbigmips_freebsd_vec',
`bfd_elf32_ntradlittlemips_freebsd_vec',
`bfd_elf32_tradbigmips_freebsd_vec',
`bfd_elf32_tradlittlemips_freebsd_vec',
`bfd_elf64_tradbigmips_freebsd_vec' and
`bfd_elf64_tradlittlemips_freebsd_vec'.
* configure: Regenerate.
* elf32-mips.c: New target for FreeBSD support
(same as traditional MIPS but overrides ELF_OSABI
with ELFOSABI_FREEBSD).
* elf64-mips.c: Likewise.
* elfn32-mips.c: Likewise.
* targets.c (_bfd_target_vector): Add
`bfd_elf32_ntradbigmips_freebsd_vec',
`bfd_elf32_ntradlittlemips_freebsd_vec',
`bfd_elf32_tradbigmips_freebsd_vec',
`bfd_elf32_tradlittlemips_freebsd_vec',
`bfd_elf64_tradbigmips_freebsd_vec' and
`bfd_elf64_tradlittlemips_freebsd_vec'.
ld/
2010-12-14 Robert Millan <rmh@gnu.org>
* configure.tgt: Recognize mips-freebsd and mips-kfreebsd-gnu.
* emulparams/elf32btsmip_fbsd.sh: New file.
* emulparams/elf32btsmipn32_fbsd.sh: Likewise.
* emulparams/elf32ltsmip_fbsd.sh: Likewise.
* emulparams/elf32ltsmipn32_fbsd.sh: Likewise.
* emulparams/elf64btsmip_fbsd.sh: Likewise.
* emulparams/elf64ltsmip_fbsd.sh: Likewise.
* Makefile.am: Add build rules for `eelf32btsmip_fbsd.c',
`eelf32btsmipn32_fbsd.c', `eelf32ltsmip_fbsd.c',
`eelf32ltsmipn32_fbsd.c', `eelf64btsmip_fbsd.c' and
`eelf64ltsmip_fbsd.c'.
* Makefile.in: Regenerate.
gas/
2010-12-19 Robert Millan <rmh@gnu.org>
Richard Sandiford <rdsandiford@googlemail.com>
* config/tc-mips.c (ELF_TARGET): New macro. Generates target
names accordingly to whether TE_FreeBSD and whether TE_TMIPS
are defined.
(mips_target_format): Refactor code using ELF_TARGET().
(support_64bit_objects): Likewise.
* configure.in: Recognize mips-freebsd and mips-kfreebsd-gnu.
* configure.tgt: Likewise.
* configure: Regenerate.
binutils/testsuite/
* binutils-all/readelf.exp: Handle MIPS FreeBSD targets.
gas/testsuite/
* gas/mips/e32el-rel2.d: Accept any file format.
* gas/mips/elf-rel.d: Likewise.
* gas/mips/elf-rel2.d: Likewise.
* gas/mips/elf-rel3.d: Likewise.
* gas/mips/elfel-rel.d: Likewise.
* gas/mips/elfel-rel2.d: Likewise.
* gas/mips/elfel-rel3.d: Likewise.
* gas/mips/ldstla-32-mips3-shared.d: Likewise.
* gas/mips/ldstla-32-mips3.d: Likewise.
* gas/mips/ldstla-32-shared.d: Likewise.
* gas/mips/ldstla-32.d: Likewise.
* gas/mips/ldstla-n64-shared.d: Likewise.
* gas/mips/ldstla-n64.d: Likewise.
* gas/mips/noat-1.d: Likewise.
* gas/mips/set-arch.d: Likewise.
* gas/mips/tls-o32.d: Likewise.
ld/testsuite/
* ld-mips-elf/mips-elf-flags.exp: Handle FreeBSD targets.
* ld-mips-elf/mips-elf.exp: Likewise.
* ld-mips-elf/mips16-call-global.d: Accept any file format.
* ld-mips-elf/mips16-intermix.d: Likewise.
2010-12-31 11:01:00 +00:00
|
|
|
mips*-*-linux*-* | mips*-*-freebsd* | mips*-*-kfreebsd*-gnu)
|
|
|
|
case "$endian" in
|
2001-06-07 17:23:14 +00:00
|
|
|
big) emulation="mipsbelf mipslelf mipself" ;;
|
|
|
|
*) emulation="mipslelf mipsbelf mipself" ;;
|
1999-05-03 07:29:11 +00:00
|
|
|
esac ;;
|
|
|
|
mips-*-lnews*-ecoff) ;;
|
|
|
|
mips-*-*-ecoff) case "$endian" in
|
|
|
|
big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
|
|
|
|
*) emulation="mipslecoff mipsbecoff mipsecoff" ;;
|
|
|
|
esac ;;
|
|
|
|
mips-*-*-elf) case "$endian" in
|
|
|
|
big) emulation="mipsbelf mipslelf mipself" ;;
|
|
|
|
*) emulation="mipslelf mipsbelf mipself" ;;
|
|
|
|
esac ;;
|
2000-07-13 14:57:49 +00:00
|
|
|
mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
|
2000-06-18 23:47:18 +00:00
|
|
|
# i386-pc-pe-coff != i386-pc-coff.
|
|
|
|
i386-*-pe-coff) ;;
|
2000-01-26 22:48:31 +00:00
|
|
|
# Uncommenting the next line will turn on support for i386 AOUT
|
|
|
|
# for the default linux configuration
|
|
|
|
# i386-*-linux*-elf) emulation="i386elf i386aout" ;;
|
|
|
|
#
|
|
|
|
i386-*-aout) emulation="i386aout" ;;
|
1999-09-02 15:12:01 +00:00
|
|
|
i386-*-coff) emulation="i386coff" ;;
|
2000-01-26 22:48:31 +00:00
|
|
|
i386-*-elf) emulation="i386elf" ;;
|
2000-07-20 17:45:28 +00:00
|
|
|
|
2001-03-27 02:48:19 +00:00
|
|
|
# Always all formats. The first stated emulation becomes the default.
|
|
|
|
cris-*-*aout*) emulation="crisaout criself" ;;
|
|
|
|
cris-*-*) emulation="criself crisaout" ;;
|
1999-05-03 07:29:11 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
emulations="$emulations $emulation"
|
|
|
|
|
|
|
|
done
|
|
|
|
|
2000-03-02 20:15:33 +00:00
|
|
|
# Turn on all targets if possible
|
|
|
|
if test ${all_targets} = "yes"; then
|
|
|
|
case ${target_cpu_type} in
|
|
|
|
i386)
|
|
|
|
case ${obj_format} in
|
|
|
|
aout)
|
|
|
|
emulations="$emulations i386coff i386elf"
|
|
|
|
;;
|
|
|
|
coff)
|
|
|
|
emulations="$emulations i386aout i386elf"
|
|
|
|
;;
|
|
|
|
elf)
|
|
|
|
emulations="$emulations i386aout i386coff"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
2006-09-20 11:35:11 +00:00
|
|
|
x86_64)
|
|
|
|
case ${obj_format} in
|
|
|
|
aout)
|
|
|
|
emulations="$emulations i386coff i386elf"
|
|
|
|
;;
|
|
|
|
coff)
|
|
|
|
emulations="$emulations i386aout i386elf"
|
|
|
|
;;
|
|
|
|
elf)
|
|
|
|
emulations="$emulations i386aout i386coff"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
2000-03-02 20:15:33 +00:00
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
2010-11-19 02:32:00 +00:00
|
|
|
# PE code has way too many macros tweaking behaviour
|
|
|
|
case ${te_file} in
|
|
|
|
pe*) emulations="" ;;
|
|
|
|
esac
|
|
|
|
|
1999-05-03 07:29:11 +00:00
|
|
|
# Assign floating point type. Most processors with FP support
|
|
|
|
# IEEE FP. On those that don't support FP at all, usually IEEE
|
|
|
|
# is emulated.
|
|
|
|
case ${target_cpu} in
|
2006-06-01 12:21:05 +00:00
|
|
|
vax | pdp11 ) atof=vax ;;
|
1999-05-03 07:29:11 +00:00
|
|
|
*) atof=ieee ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
case "${obj_format}" in
|
|
|
|
"") AC_MSG_ERROR(GAS does not know what format to use for target ${target}) ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
|
|
|
|
cgen_cpu_prefix=""
|
|
|
|
if test $using_cgen = yes ; then
|
|
|
|
case ${target_cpu} in
|
|
|
|
*) cgen_cpu_prefix=${target_cpu} ;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(cgen_cpu_prefix)
|
|
|
|
AC_DEFINE(USING_CGEN, 1, [Using cgen code?])
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Make sure the desired support files exist.
|
|
|
|
dnl
|
|
|
|
|
|
|
|
if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
|
|
|
|
AC_MSG_ERROR(GAS does not support target CPU ${target_cpu_type})
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
|
|
|
|
AC_MSG_ERROR(GAS does not have support for object file format ${obj_format})
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Some COFF configurations want these random other flags set.
|
|
|
|
case ${obj_format} in
|
|
|
|
coff)
|
|
|
|
case ${target_cpu_type} in
|
|
|
|
i386) AC_DEFINE(I386COFF, 1, [Using i386 COFF?]) ;;
|
|
|
|
m68k) AC_DEFINE(M68KCOFF, 1, [Using m68k COFF?]) ;;
|
|
|
|
m88k) AC_DEFINE(M88KCOFF, 1, [Using m88k COFF?]) ;;
|
2006-09-20 11:35:11 +00:00
|
|
|
x86_64) AC_DEFINE(I386COFF, 1, [Using i386 COFF?]) ;;
|
1999-05-03 07:29:11 +00:00
|
|
|
esac
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Getting this done right is going to be a bitch. Each configuration specified
|
* README-vms: Delete.
* config-gas.com: Delete.
* makefile.vms: Delete.
* vmsconf.sh: Delete.
* config/atof-tahoe.c: Delete.
* config/m88k-opcode.h: Delete.
* config/obj-bout.c: Delete.
* config/obj-bout.h: Delete.
* config/obj-hp300.c: Delete.
* config/obj-hp300.h: Delete.
* config/tc-a29k.c: Delete.
* config/tc-a29k.h: Delete.
* config/tc-h8500.c: Delete.
* config/tc-h8500.h: Delete.
* config/tc-m88k.c: Delete.
* config/tc-m88k.h: Delete.
* config/tc-tahoe.c: Delete.
* config/tc-tahoe.h: Delete.
* config/tc-tic80.c: Delete.
* config/tc-tic80.h: Delete.
* config/tc-w65.c: Delete.
* config/tc-w65.h: Delete.
* config/te-aux.h: Delete.
* config/te-delt88.h: Delete.
* config/te-delta.h: Delete.
* config/te-dpx2.h: Delete.
* config/te-hp300.h: Delete.
* config/te-ic960.h: Delete.
* config/vms-a-conf.h: Delete.
* doc/c-a29k.texi: Delete.
* doc/c-h8500.texi: Delete.
* doc/c-m88k.texi: Delete.
* README: Remove obsolete examples, and list of supported targets.
* Makefile.am: Remove a29k, h8500, m88k, tahoe, tic80, w65,
bout and hp300 support.
(DEP_FLAGS): Don't define BFD_ASSEMBLER.
* configure.in: Remove --enable-bfd-assembler, need_bfd,
primary_bfd_gas.
* configure.tgt: Remove a29k, h8300-coff, h8500-*, i960 non-elf,
m68k non bfd, m88k, or32-coff, tic80-*, vax non-bfd, w65k-*, *-nindy.
* as.c: Remove all non-BFD_ASSEMBLER code, support for above targets.
* as.h: Likewise.
* dw2gencfi.c: Likewise.
* dwarf2dbg.c: Likewise.
* ehopt.c: Likewise.
* input-file.c: Likewise.
* listing.c: Likewise.
* literal.c: Likewise.
* messages.c: Likewise.
* obj.h: Likewise.
* output-file.c: Likewise.
* read.c: Likewise.
* stabs.c: Likewise.
* struc-symbol.h: Likewise.
* subsegs.c: Likewise.
* subsegs.h: Likewise.
* symbols.c: Likewise.
* symbols.h: Likewise.
* tc.h: Likewise.
* write.c: Likewise.
* write.h: Likewise.
* config/aout_gnu.h: Likewise.
* config/obj-aout.c: Likewise.
* config/obj-aout.h: Likewise.
* config/obj-coff.c: Likewise.
* config/obj-coff.h: Likewise.
* config/obj-evax.h: Likewise.
* config/obj-ieee.h: Likewise.
* config/tc-arm.c: Likewise.
* config/tc-arm.h: Likewise.
* config/tc-avr.c: Likewise.
* config/tc-avr.h: Likewise.
* config/tc-crx.h: Likewise.
* config/tc-d10v.h: Likewise.
* config/tc-d30v.h: Likewise.
* config/tc-dlx.h: Likewise.
* config/tc-fr30.h: Likewise.
* config/tc-frv.h: Likewise.
* config/tc-h8300.c: Likewise.
* config/tc-h8300.h: Likewise.
* config/tc-hppa.h: Likewise.
* config/tc-i370.h: Likewise.
* config/tc-i386.c: Likewise.
* config/tc-i386.h: Likewise.
* config/tc-i860.h: Likewise.
* config/tc-i960.c: Likewise.
* config/tc-i960.h: Likewise.
* config/tc-ip2k.h: Likewise.
* config/tc-iq2000.h: Likewise.
* config/tc-m32c.h: Likewise.
* config/tc-m32r.h: Likewise.
* config/tc-m68hc11.h: Likewise.
* config/tc-m68k.c: Likewise.
* config/tc-m68k.h: Likewise.
* config/tc-maxq.c: Likewise.
* config/tc-maxq.h: Likewise.
* config/tc-mcore.c: Likewise.
* config/tc-mcore.h: Likewise.
* config/tc-mn10200.h: Likewise.
* config/tc-mn10300.c: Likewise.
* config/tc-mn10300.h: Likewise.
* config/tc-ms1.h: Likewise.
* config/tc-msp430.c: Likewise.
* config/tc-msp430.h: Likewise.
* config/tc-ns32k.c: Likewise.
* config/tc-ns32k.h: Likewise.
* config/tc-openrisc.h: Likewise.
* config/tc-or32.c: Likewise.
* config/tc-or32.h: Likewise.
* config/tc-ppc.c: Likewise.
* config/tc-ppc.h: Likewise.
* config/tc-s390.h: Likewise.
* config/tc-sh.c: Likewise.
* config/tc-sh.h: Likewise.
* config/tc-sparc.c: Likewise.
* config/tc-tic30.c: Likewise.
* config/tc-tic30.h: Likewise.
* config/tc-tic4x.c: Likewise.
* config/tc-tic4x.h: Likewise.
* config/tc-tic54x.c: Likewise.
* config/tc-tic54x.h: Likewise.
* config/tc-v850.h: Likewise.
* config/tc-vax.c: Likewise.
* config/tc-vax.h: Likewise.
* config/tc-xstormy16.h: Likewise.
* config/tc-xtensa.h: Likewise.
* config/tc-z8k.c: Likewise.
* config/tc-z8k.h: Likewise.
* config/vms-a-conf.h
* doc/Makefile.am: Likewise.
* doc/all.texi: Likewise.
* doc/as.texinfo: Likewise.
* doc/Makefile.in: Regenerate.
* Makefile.in: Regenerate.
* configure: Regenerate.
* config.in: Regenerate.
* po/POTFILES.in: Regenerate.
2005-08-11 01:25:29 +00:00
|
|
|
# with --enable-targets=... should be checked for environment, format, cpu
|
|
|
|
# setting.
|
1999-05-03 07:29:11 +00:00
|
|
|
#
|
|
|
|
# For each configuration, the necessary object file support code must be linked
|
|
|
|
# in. This might be only one, it might be up to four. The necessary emulation
|
|
|
|
# code needs to be provided, too.
|
|
|
|
#
|
|
|
|
# And then there's "--enable-targets=all"....
|
|
|
|
#
|
|
|
|
# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
|
|
|
|
|
|
|
|
formats="${obj_format}"
|
|
|
|
emfiles=""
|
|
|
|
EMULATIONS=""
|
|
|
|
GAS_UNIQ(emulations)
|
|
|
|
for em in . $emulations ; do
|
|
|
|
case $em in
|
|
|
|
.) continue ;;
|
2001-02-10 22:25:10 +00:00
|
|
|
mipsbelf | mipslelf | mipself)
|
1999-05-03 07:29:11 +00:00
|
|
|
fmt=elf file=mipself ;;
|
2001-02-10 22:25:10 +00:00
|
|
|
mipsbecoff | mipslecoff | mipsecoff)
|
1999-05-03 07:29:11 +00:00
|
|
|
fmt=ecoff file=mipsecoff ;;
|
2000-05-21 18:26:10 +00:00
|
|
|
*coff)
|
|
|
|
fmt=coff file=$em ;;
|
|
|
|
*aout)
|
|
|
|
fmt=aout file=$em ;;
|
|
|
|
*elf)
|
|
|
|
fmt=elf file=$em ;;
|
1999-05-03 07:29:11 +00:00
|
|
|
esac
|
|
|
|
formats="$formats $fmt"
|
|
|
|
emfiles="$emfiles e-$file.o"
|
|
|
|
EMULATIONS="$EMULATIONS &$em,"
|
|
|
|
done
|
|
|
|
GAS_UNIQ(formats)
|
|
|
|
GAS_UNIQ(emfiles)
|
|
|
|
if test `set . $formats ; shift ; echo $#` -gt 1 ; then
|
|
|
|
for fmt in $formats ; do
|
|
|
|
case $fmt in
|
|
|
|
aout) AC_DEFINE(OBJ_MAYBE_AOUT, 1, [a.out support?]) ;;
|
|
|
|
bout) AC_DEFINE(OBJ_MAYBE_BOUT, 1, [b.out support?]) ;;
|
|
|
|
coff) AC_DEFINE(OBJ_MAYBE_COFF, 1, [COFF support?]) ;;
|
|
|
|
ecoff) AC_DEFINE(OBJ_MAYBE_ECOFF, 1, [ECOFF support?]) ;;
|
|
|
|
elf) AC_DEFINE(OBJ_MAYBE_ELF, 1, [ELF support?]) ;;
|
|
|
|
generic) AC_DEFINE(OBJ_MAYBE_GENERIC, 1, [generic support?]) ;;
|
|
|
|
som) AC_DEFINE(OBJ_MAYBE_SOM, 1, [SOM support?]) ;;
|
|
|
|
esac
|
|
|
|
extra_objects="$extra_objects obj-$fmt.o"
|
|
|
|
done
|
|
|
|
obj_format=multi
|
|
|
|
fi
|
|
|
|
if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
|
|
|
|
DEFAULT_EMULATION=`set . $emulations ; echo $2`
|
1999-09-02 15:12:01 +00:00
|
|
|
# e-mips* has more than one emulation per file, e-i386* has just one at the
|
|
|
|
# moment. If only one emulation is specified, then don't define
|
|
|
|
# USE_EMULATIONS or include any of the e-files as they will only be bloat.
|
|
|
|
case "${obj_format}${emfiles}" in
|
|
|
|
multi* | *mips*)
|
|
|
|
extra_objects="$extra_objects $emfiles"
|
|
|
|
AC_DEFINE(USE_EMULATIONS, 1, [Use emulation support?]) ;;
|
|
|
|
esac
|
1999-05-03 07:29:11 +00:00
|
|
|
fi
|
|
|
|
AC_SUBST(extra_objects)
|
|
|
|
AC_DEFINE_UNQUOTED(EMULATIONS, $EMULATIONS, [Supported emulations.])
|
|
|
|
AC_DEFINE_UNQUOTED(DEFAULT_EMULATION, "$DEFAULT_EMULATION",
|
|
|
|
[Default emulation.])
|
|
|
|
|
|
|
|
reject_dev_configs=yes
|
|
|
|
|
|
|
|
case ${reject_dev_configs}-${dev} in
|
|
|
|
yes-yes) # Oops.
|
|
|
|
AC_MSG_ERROR(GAS does not support the ${generic_target} configuration.)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
AC_SUBST(target_cpu_type)
|
|
|
|
AC_SUBST(obj_format)
|
|
|
|
AC_SUBST(te_file)
|
|
|
|
AC_SUBST(install_tooldir)
|
|
|
|
AC_SUBST(atof)
|
|
|
|
dnl AC_SUBST(emulation)
|
|
|
|
|
|
|
|
# do we need the opcodes library?
|
|
|
|
case "${need_opcodes}" in
|
|
|
|
yes)
|
|
|
|
OPCODES_LIB=../opcodes/libopcodes.la
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
AC_SUBST(OPCODES_LIB)
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(TARGET_ALIAS, "${target_alias}", [Target alias.])
|
|
|
|
AC_DEFINE_UNQUOTED(TARGET_CANONICAL, "${target}", [Canonical target.])
|
|
|
|
AC_DEFINE_UNQUOTED(TARGET_CPU, "${target_cpu}", [Target CPU.])
|
|
|
|
AC_DEFINE_UNQUOTED(TARGET_VENDOR, "${target_vendor}", [Target vendor.])
|
|
|
|
AC_DEFINE_UNQUOTED(TARGET_OS, "${target_os}", [Target OS.])
|
|
|
|
|
|
|
|
AC_PROG_YACC
|
|
|
|
AM_PROG_LEX
|
|
|
|
|
2011-10-28 13:02:15 +00:00
|
|
|
ALL_LINGUAS="fr tr es rw id ru fi ja"
|
2006-05-31 15:14:46 +00:00
|
|
|
ZW_GNU_GETTEXT_SISTER_DIR
|
|
|
|
AM_PO_SUBDIRS
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
2006-12-11 15:09:46 +00:00
|
|
|
AM_CONDITIONAL(GENINSRC_NEVER, false)
|
1999-05-03 07:29:11 +00:00
|
|
|
AC_EXEEXT
|
|
|
|
|
2012-04-06 16:49:02 +00:00
|
|
|
AC_CHECK_HEADERS(string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h)
|
2012-05-11 14:25:30 +00:00
|
|
|
ACX_HEADER_STRING
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
# Put this here so that autoconf's "cross-compiling" message doesn't confuse
|
|
|
|
# people who are not cross-compiling but are compiling cross-assemblers.
|
|
|
|
AC_MSG_CHECKING(whether compiling a cross-assembler)
|
|
|
|
if test "${host}" = "${target}"; then
|
|
|
|
cross_gas=no
|
|
|
|
else
|
|
|
|
cross_gas=yes
|
|
|
|
AC_DEFINE(CROSS_COMPILE, 1, [Compiling cross-assembler?])
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT($cross_gas)
|
|
|
|
|
|
|
|
dnl ansidecl.h will deal with const
|
2008-08-24 03:13:05 +00:00
|
|
|
dnl AC_C_CONST
|
1999-05-03 07:29:11 +00:00
|
|
|
AC_FUNC_ALLOCA
|
|
|
|
AC_C_INLINE
|
|
|
|
|
|
|
|
# VMS doesn't have unlink.
|
|
|
|
AC_CHECK_FUNCS(unlink remove, break)
|
2012-06-18 04:43:07 +00:00
|
|
|
AC_CHECK_FUNCS(sbrk setlocale)
|
1999-05-03 07:29:11 +00:00
|
|
|
|
2012-04-05 08:43:41 +00:00
|
|
|
AM_LC_MESSAGES
|
|
|
|
|
2000-06-20 13:52:32 +00:00
|
|
|
# do we need the math library?
|
|
|
|
case "${need_libm}" in
|
2006-06-01 12:21:05 +00:00
|
|
|
yes)
|
2008-08-24 03:13:05 +00:00
|
|
|
LT_LIB_M
|
2000-06-20 13:52:32 +00:00
|
|
|
AC_SUBST(LIBM)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
1999-05-03 07:29:11 +00:00
|
|
|
# Some non-ANSI preprocessors botch requoting inside strings. That's bad
|
|
|
|
# enough, but on some of those systems, the assert macro relies on requoting
|
|
|
|
# working properly!
|
|
|
|
GAS_WORKING_ASSERT
|
|
|
|
|
|
|
|
# On some systems, the system header files may not declare malloc, realloc,
|
|
|
|
# and free. There are places where gas needs these functions to have been
|
|
|
|
# declared -- such as when taking their addresses.
|
|
|
|
gas_test_headers="
|
|
|
|
#ifdef HAVE_MEMORY_H
|
|
|
|
#include <memory.h>
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_STRING_H
|
|
|
|
#include <string.h>
|
|
|
|
#else
|
|
|
|
#ifdef HAVE_STRINGS_H
|
|
|
|
#include <strings.h>
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_STDLIB_H
|
|
|
|
#include <stdlib.h>
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_UNISTD_H
|
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
|
|
|
"
|
|
|
|
|
|
|
|
# Does errno.h declare errno, or do we have to add a separate declaration
|
|
|
|
# for it?
|
|
|
|
GAS_CHECK_DECL_NEEDED(errno, f, int f, [
|
|
|
|
#ifdef HAVE_ERRNO_H
|
|
|
|
#include <errno.h>
|
|
|
|
#endif
|
|
|
|
])
|
|
|
|
|
2005-04-01 12:56:29 +00:00
|
|
|
AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
|
|
|
|
AC_CACHE_VAL(gas_cv_decl_getopt_unistd_h,
|
2008-08-24 03:13:05 +00:00
|
|
|
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])],
|
2005-04-01 12:56:29 +00:00
|
|
|
gas_cv_decl_getopt_unistd_h=yes, gas_cv_decl_getopt_unistd_h=no)])
|
|
|
|
AC_MSG_RESULT($gas_cv_decl_getopt_unistd_h)
|
|
|
|
if test $gas_cv_decl_getopt_unistd_h = yes; then
|
|
|
|
AC_DEFINE([HAVE_DECL_GETOPT], 1,
|
|
|
|
[Is the prototype for getopt in <unistd.h> in the expected format?])
|
|
|
|
fi
|
|
|
|
|
2005-03-30 02:55:13 +00:00
|
|
|
GAS_CHECK_DECL_NEEDED(environ, f, char **f, $gas_test_headers)
|
|
|
|
GAS_CHECK_DECL_NEEDED(ffs, f, int (*f)(int), $gas_test_headers)
|
|
|
|
GAS_CHECK_DECL_NEEDED(free, f, void (*f)(), $gas_test_headers)
|
|
|
|
GAS_CHECK_DECL_NEEDED(malloc, f, char *(*f)(), $gas_test_headers)
|
|
|
|
GAS_CHECK_DECL_NEEDED(sbrk, f, char *(*f)(), $gas_test_headers)
|
|
|
|
GAS_CHECK_DECL_NEEDED(strstr, f, char *(*f)(), $gas_test_headers)
|
|
|
|
|
2012-06-18 04:43:07 +00:00
|
|
|
AC_CHECK_DECLS([free, getenv, malloc, mempcpy, realloc, stpcpy, strstr, vsnprintf])
|
2006-02-09 11:54:15 +00:00
|
|
|
|
2006-08-02 14:26:07 +00:00
|
|
|
BFD_BINARY_FOPEN
|
|
|
|
|
2010-07-03 20:52:24 +00:00
|
|
|
# Link in zlib if we can. This allows us to write compressed debug sections.
|
|
|
|
AM_ZLIB
|
|
|
|
|
2009-09-07 09:15:31 +00:00
|
|
|
# Support for VMS timestamps via cross compile
|
|
|
|
|
|
|
|
if test "$ac_cv_header_time_h" = yes; then
|
|
|
|
GAS_HAVE_TIME_TYPE_MEMBER(struct tm, tm_gmtoff)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$ac_cv_header_sys_stat_h" = yes; then
|
|
|
|
GAS_HAVE_SYS_STAT_TYPE_MEMBER(struct stat, st_mtim, tv_sec)
|
|
|
|
GAS_HAVE_SYS_STAT_TYPE_MEMBER(struct stat, st_mtim, tv_nsec)
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2009-02-03 15:54:05 +00:00
|
|
|
dnl Required for html, pdf, install-pdf and install-html targets.
|
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.tpl: Add install-html target.
* Makefile.def: Add install-html target.
* Makefile.in: Regenerate.
* configure.in: Add --with-datarootdir, --with-docdir,
and --with-htmldir options.
* configure: Regenerate.
bfd/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Rename docdir to bfddocdir. Add datarootdir, docdir
htmldir. Add install-html and install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST for datarootdir, docdir and htmldir.
* configure: Regenerate.
bfd/doc/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.am: Add install-html and install-html-am targets.
Define datarootdir, docdir and htmldir.
* Makefile.in: Regenerate.
binutils/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Add install-html and install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir and htmldir.
* configure: Regenerate.
* doc/Makefile.am: Add install-html and install-html-am targets.
* doc/Makefile.in: Regenerate.
etc/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.in: Add install-html target. Add htmldir,
docdir and datarootdir.
* configure.texi: Document install-html target.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
gas/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Add install-html and install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
* doc/Makefile.am: Add install-html and install-html-am targets.
* doc/Makefile.in: Regenerate.
gprof/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Add install-html, install-html-am and
install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
intl/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* intl/Makefile.in: Add html info and dvi and install-html to .PHONY
Add install-html target.
ld/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.am: Add install-html, install-html-am, and
install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
* po/Make-in: Add install-html target.
opcodes/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.am: Add install-html target.
* Makefile.in: Regenerate.
2006-04-06 21:49:35 +00:00
|
|
|
AC_SUBST(datarootdir)
|
|
|
|
AC_SUBST(docdir)
|
|
|
|
AC_SUBST(htmldir)
|
2009-02-03 15:54:05 +00:00
|
|
|
AC_SUBST(pdfdir)
|
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.tpl: Add install-html target.
* Makefile.def: Add install-html target.
* Makefile.in: Regenerate.
* configure.in: Add --with-datarootdir, --with-docdir,
and --with-htmldir options.
* configure: Regenerate.
bfd/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Rename docdir to bfddocdir. Add datarootdir, docdir
htmldir. Add install-html and install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST for datarootdir, docdir and htmldir.
* configure: Regenerate.
bfd/doc/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.am: Add install-html and install-html-am targets.
Define datarootdir, docdir and htmldir.
* Makefile.in: Regenerate.
binutils/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Add install-html and install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir and htmldir.
* configure: Regenerate.
* doc/Makefile.am: Add install-html and install-html-am targets.
* doc/Makefile.in: Regenerate.
etc/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.in: Add install-html target. Add htmldir,
docdir and datarootdir.
* configure.texi: Document install-html target.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
gas/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Add install-html and install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
* doc/Makefile.am: Add install-html and install-html-am targets.
* doc/Makefile.in: Regenerate.
gprof/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Add install-html, install-html-am and
install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
intl/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* intl/Makefile.in: Add html info and dvi and install-html to .PHONY
Add install-html target.
ld/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.am: Add install-html, install-html-am, and
install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
* po/Make-in: Add install-html target.
opcodes/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.am: Add install-html target.
* Makefile.in: Regenerate.
2006-04-06 21:49:35 +00:00
|
|
|
|
1999-05-03 07:29:11 +00:00
|
|
|
dnl This must come last.
|
|
|
|
|
|
|
|
dnl We used to make symlinks to files in the source directory, but now
|
|
|
|
dnl we just use the right name for .c files, and create .h files in
|
|
|
|
dnl the build directory which include the right .h file. Make sure
|
|
|
|
dnl the old symlinks don't exist, so that a reconfigure in an existing
|
|
|
|
dnl directory behaves reasonably.
|
|
|
|
|
2003-09-02 17:59:13 +00:00
|
|
|
AC_CONFIG_FILES(Makefile doc/Makefile po/Makefile.in:po/Make-in)
|
|
|
|
AC_CONFIG_COMMANDS([default],
|
1999-05-03 07:29:11 +00:00
|
|
|
[rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
|
|
|
|
echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
|
|
|
|
echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
|
|
|
|
echo '#include "te-'"${te_file}"'.h"' > targ-env.h
|
|
|
|
echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
|
|
|
|
if test "x$cgen_cpu_prefix" != x ; then
|
|
|
|
echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
|
2006-05-31 15:14:46 +00:00
|
|
|
fi],
|
1999-05-03 07:29:11 +00:00
|
|
|
[target_cpu_type=${target_cpu_type}
|
|
|
|
cgen_cpu_prefix=${cgen_cpu_prefix}
|
|
|
|
obj_format=${obj_format}
|
|
|
|
te_file=${te_file}])
|
2003-09-02 17:59:13 +00:00
|
|
|
|
|
|
|
AC_OUTPUT
|