Individual processor configurations for sh-elf / sh-linux:
authorJoern Rennecke <joern.rennecke@embecosm.com>
Thu, 13 Jun 2002 20:11:35 +0000 (20:11 +0000)
committerJoern Rennecke <joern.rennecke@embecosm.com>
Thu, 13 Jun 2002 20:11:35 +0000 (20:11 +0000)
gcc:
* config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
* config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
* sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
(SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
(SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
(SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
(SELECT_SH5_COMPACT_NOFPU): Likewise.
(TARGET_SWITCHES): Use them.
(TARGET_CPU_DEFAULT): Define if not already defined.
(TARGET_DEFAULT): Use it.
(LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
* config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
* config/sh/t-monolib: New file.

bfd:
config.bfd: Add support for sh[1234]l*-*-elf* | sh3el*-*-elf*,
sh[1234]*-elf*.

ld:
* configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.

Still outstanding:
config.sub:
* config.sub: Add support for sh[12], sh3e, sh[1234]le, sh3ele,
shle, sh[1234]le, sh3ele, sh64le.

bfd/ChangeLog
bfd/config.bfd
ld/ChangeLog
ld/configure.tgt

index 7ba8476c65b2fd61821851d5e514861fdeb67ec4..077b108bad16480694c171b6c7dd748fdb73ad3d 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
+
+       config.bfd: Add support for sh[1234]l*-*-elf* | sh3el*-*-elf*,
+       sh[1234]*-elf*.
+
 2002-06-12  John David Anglin  <dave@hiauly1.hia.nrc.ca>
 
        * elflink.h (elf_bfd_final_link): Improve error handling for missing
index a407681e9a267396db0ff2a40f1ada060b1c54bb..520c36bcb4e94b1d973c195e57b6a82ec69f9313 100644 (file)
@@ -953,7 +953,7 @@ case "${targ}" in
     targ_selvecs="bfd_elf32_shlnbsd_vec shcoff_vec shlcoff_vec"
     ;;
 
-  shl*-*-elf*)
+  shl*-*-elf* | sh[1234]l*-*-elf* | sh3el*-*-elf*)
     targ_defvec=bfd_elf32_shl_vec
     targ_selvecs="bfd_elf32_sh_vec shlcoff_vec shcoff_vec shlcoff_small_vec shcoff_small_vec"
 #ifdef BFD64
@@ -961,7 +961,7 @@ case "${targ}" in
 #endif
     targ_underscore=yes
     ;;
-  sh-*-elf* | sh-*-rtemself*)
+  sh-*-elf* | sh[1234]*-elf* | sh-*-rtemself*)
     targ_defvec=bfd_elf32_sh_vec
     targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
 #ifdef BFD64
index 6fb172aa1dc5bc5a892017abfa0451f04bd5697d..071d22fa144eb20a3936210e68dde6790074b72d 100644 (file)
@@ -1,3 +1,7 @@
+Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
+
 2002-06-12  H.J. Lu <hjl@gnu.org>
 
        * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
index 5a135c60f12abf10286a3cc89c6103acf0c472d8..9deb504b8e876db85317fd8e87236ed5d9b7933a 100644 (file)
@@ -294,11 +294,11 @@ sh*-*-netbsdelf*)
                        targ_emul=shelf_nbsd
                        targ_extra_emuls=shlelf_nbsd
                        ;;
-shle*-*-elf*)
+shle*-*-elf* | sh[1234]*le*-*-elf)
                        targ_emul=shlelf
                        targ_extra_emuls="shelf shl sh"
                        ;;
-sh-*-elf* | sh-*-rtemself*)
+sh-*-elf* | sh[1234]*-*-elf | sh-*-rtemself*)
                        targ_emul=shelf
                        targ_extra_emuls="shlelf sh shl"
                        ;;