mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-15 11:56:11 +08:00
* config/tc-sh64.c (sh64_target_format): Check preset_target_arch
to confirm that no ISA is specified.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2005-08-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
||||||
|
|
||||||
|
* config/tc-sh64.c (sh64_target_format): Check preset_target_arch
|
||||||
|
to confirm that no ISA is specified.
|
||||||
|
|
||||||
2005-08-18 Nick Clifton <nickc@redhat.com>
|
2005-08-18 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* write.c (relax_segment): Count the number of frags being
|
* write.c (relax_segment): Count the number of frags being
|
||||||
|
@ -2928,14 +2928,14 @@ sh64_target_format (void)
|
|||||||
{
|
{
|
||||||
#ifdef TE_NetBSD
|
#ifdef TE_NetBSD
|
||||||
/* For NetBSD, if the ISA is unspecified, always use SHmedia. */
|
/* For NetBSD, if the ISA is unspecified, always use SHmedia. */
|
||||||
if (sh64_isa_mode == sh64_isa_unspecified)
|
if (preset_target_arch == 0 && sh64_isa_mode == sh64_isa_unspecified)
|
||||||
sh64_isa_mode = sh64_isa_shmedia;
|
sh64_isa_mode = sh64_isa_shmedia;
|
||||||
|
|
||||||
/* If the ABI is unspecified, select a default: based on how
|
/* If the ABI is unspecified, select a default: based on how
|
||||||
we were configured: sh64 == sh64_abi_64, else sh64_abi_32. */
|
we were configured: sh64 == sh64_abi_64, else sh64_abi_32. */
|
||||||
if (sh64_abi == sh64_abi_unspecified)
|
if (sh64_abi == sh64_abi_unspecified)
|
||||||
{
|
{
|
||||||
if (sh64_isa_mode == sh64_isa_shcompact)
|
if (preset_target_arch != 0 || sh64_isa_mode == sh64_isa_shcompact)
|
||||||
sh64_abi = sh64_abi_32;
|
sh64_abi = sh64_abi_32;
|
||||||
else if (strncmp (TARGET_CPU, "sh64", 4) == 0)
|
else if (strncmp (TARGET_CPU, "sh64", 4) == 0)
|
||||||
sh64_abi = sh64_abi_64;
|
sh64_abi = sh64_abi_64;
|
||||||
@ -2945,7 +2945,7 @@ sh64_target_format (void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef TE_LINUX
|
#ifdef TE_LINUX
|
||||||
if (sh64_isa_mode == sh64_isa_unspecified)
|
if (preset_target_arch == 0 && sh64_isa_mode == sh64_isa_unspecified)
|
||||||
sh64_isa_mode = sh64_isa_shmedia;
|
sh64_isa_mode = sh64_isa_shmedia;
|
||||||
|
|
||||||
if (sh64_abi == sh64_abi_unspecified)
|
if (sh64_abi == sh64_abi_unspecified)
|
||||||
|
Reference in New Issue
Block a user