From: Alexandre Oliva Date: Wed, 13 Feb 2002 20:45:29 +0000 (+0000) Subject: * configure.in : For sh-* and shl-*, enable sh64 X-Git-Tag: binutils-2_12~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa19c26abb32237dde2beaee1caf07501697b1fd;p=thirdparty%2Fbinutils-gdb.git * configure.in : For sh-* and shl-*, enable sh64 support only for sh-*-*elf*, shl-*-*elf*, sh-*-linux* and shl-*-linux*. * configure: Regenerate. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 16c3ad8bde2..001845b94f1 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,10 @@ +2002-02-13 Hans-Peter Nilsson + + * configure.in : For sh-* and shl-*, enable sh64 + support only for sh-*-*elf*, shl-*-*elf*, sh-*-linux* and + shl-*-linux*. + * configure: Regenerate. + 2002-02-11 Alexandre Oliva * sparc-dis.c (print_insn_sparc): Make sure 0xFFFFFFFF is not diff --git a/opcodes/configure b/opcodes/configure index 892ffa39b0d..2b100366f8c 100755 --- a/opcodes/configure +++ b/opcodes/configure @@ -4621,11 +4621,15 @@ if test x${all_targets} = xfalse ; then # We can't decide what we want just from the CPU family. # We want SH5 support unless a specific version of sh is # specified, as in sh3-elf, sh3b-linux-gnu, etc. - case " $target $canon_targets " in - *" all "* | *" sh64-"* | *" sh-"* | *" shl-"*) + # Include it just for ELF targets, since the SH5 bfd:s are ELF only. + for t in $target $canon_targets; do + case $t in + all | sh64-* | sh-*-*elf* | shl-*-*elf* | sh-*-linux* | shl-*-linux*) ta="$ta sh64-dis.lo sh64-opc.lo" - archdefs="$archdefs -DINCLUDE_SHMEDIA";; - esac; + archdefs="$archdefs -DINCLUDE_SHMEDIA" + break;; + esac; + done ta="$ta sh-dis.lo" ;; bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;; bfd_tahoe_arch) ;; diff --git a/opcodes/configure.in b/opcodes/configure.in index 587422b6d98..ee15b8a4718 100644 --- a/opcodes/configure.in +++ b/opcodes/configure.in @@ -212,11 +212,15 @@ if test x${all_targets} = xfalse ; then # We can't decide what we want just from the CPU family. # We want SH5 support unless a specific version of sh is # specified, as in sh3-elf, sh3b-linux-gnu, etc. - case " $target $canon_targets " in - *" all "* | *" sh64-"* | *" sh-"* | *" shl-"*) + # Include it just for ELF targets, since the SH5 bfd:s are ELF only. + for t in $target $canon_targets; do + case $t in + all | sh64-* | sh-*-*elf* | shl-*-*elf* | sh-*-linux* | shl-*-linux*) ta="$ta sh64-dis.lo sh64-opc.lo" - archdefs="$archdefs -DINCLUDE_SHMEDIA";; - esac; + archdefs="$archdefs -DINCLUDE_SHMEDIA" + break;; + esac; + done ta="$ta sh-dis.lo" ;; bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;; bfd_tahoe_arch) ;;