diff options
author | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2005-08-18 11:21:16 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2005-08-18 11:21:16 +0000 |
commit | 47506a87d62bb83f50751f4afe3e13533eb99cd6 (patch) | |
tree | c66aeee10401a571fc163d36e980d7a1a9e1f134 /gas/config/tc-sh64.c | |
parent | 474159e8d184085a0e519507c1d555b74fd48a0d (diff) | |
download | binutils-redhat-47506a87d62bb83f50751f4afe3e13533eb99cd6.tar.gz |
* config/tc-sh64.c (sh64_target_format): Check preset_target_arch
to confirm that no ISA is specified.
Diffstat (limited to 'gas/config/tc-sh64.c')
-rw-r--r-- | gas/config/tc-sh64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-sh64.c b/gas/config/tc-sh64.c index d5e8646a86..7964579268 100644 --- a/gas/config/tc-sh64.c +++ b/gas/config/tc-sh64.c @@ -2928,14 +2928,14 @@ sh64_target_format (void) { #ifdef TE_NetBSD /* 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; /* If the ABI is unspecified, select a default: based on how we were configured: sh64 == sh64_abi_64, else sh64_abi_32. */ 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; else if (strncmp (TARGET_CPU, "sh64", 4) == 0) sh64_abi = sh64_abi_64; @@ -2945,7 +2945,7 @@ sh64_target_format (void) #endif #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; if (sh64_abi == sh64_abi_unspecified) |