aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-sh.c
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2004-07-05 13:35:44 +0000
committerJoern Rennecke <joern.rennecke@embecosm.com>2004-07-05 13:35:44 +0000
commit871ec8960924f477379d520fd477c1958cad4e33 (patch)
tree64d9fa1a3c811abb94b048c1abf00cd6659edecc /gas/config/tc-sh.c
parentcd65252a6c39eae99b79acfa2d3a6ad23c958fbb (diff)
downloadgdb-871ec8960924f477379d520fd477c1958cad4e33.zip
gdb-871ec8960924f477379d520fd477c1958cad4e33.tar.gz
gdb-871ec8960924f477379d520fd477c1958cad4e33.tar.bz2
2004-06-30 Andrew Stubbs <andrew.stubbs@superh.com>
bfd: * elf32-sh.c: Include ../opcodes/sh-opc.h . * Makefile.am: Ran make dep-am . * Makefile.in: Ran make dep-in . gas: * config/tc-sh.c (md_assemble): Change isspace to ISSPACE. (md_parse_option): Remove redundant -isa testing. Make bfd_arch variable const. (md_show_usage): Make bfd_arch variable const.
Diffstat (limited to 'gas/config/tc-sh.c')
-rw-r--r--gas/config/tc-sh.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c
index a7e60ea..f33925b 100644
--- a/gas/config/tc-sh.c
+++ b/gas/config/tc-sh.c
@@ -2631,11 +2631,11 @@ md_assemble (char *str)
int found = 0;
/* identify opcode in string */
- while (isspace (*name))
+ while (ISSPACE (*name))
{
name++;
}
- while (!isspace (name[name_length]))
+ while (!ISSPACE (name[name_length]))
{
name_length++;
}
@@ -2945,15 +2945,7 @@ md_parse_option (int c, char *arg ATTRIBUTE_UNUSED)
break;
case OPTION_ISA:
- if (strcasecmp (arg, "sh4") == 0)
- preset_target_arch = arch_sh4;
- else if (strcasecmp (arg, "sh4-nofpu") == 0)
- preset_target_arch = arch_sh4_nofpu;
- else if (strcasecmp (arg, "sh4-nommu-nofpu") == 0)
- preset_target_arch = arch_sh4_nommu_nofpu;
- else if (strcasecmp (arg, "sh4a") == 0)
- preset_target_arch = arch_sh4a;
- else if (strcasecmp (arg, "dsp") == 0)
+ if (strcasecmp (arg, "dsp") == 0)
preset_target_arch = arch_sh1_up & ~(arch_sh_sp_fpu|arch_sh_dp_fpu);
else if (strcasecmp (arg, "fp") == 0)
preset_target_arch = arch_sh1_up & ~arch_sh_has_dsp;
@@ -2978,8 +2970,7 @@ md_parse_option (int c, char *arg ATTRIBUTE_UNUSED)
else
{
extern const bfd_arch_info_type bfd_sh_arch;
- extern unsigned int sh_ef_archset_table[];
- bfd_arch_info_type *bfd_arch = &bfd_sh_arch;
+ bfd_arch_info_type const *bfd_arch = &bfd_sh_arch;
preset_target_arch = 0;
for (; bfd_arch; bfd_arch=bfd_arch->next)
{
@@ -3068,7 +3059,7 @@ SH options:\n\
| fp"));
{
extern const bfd_arch_info_type bfd_sh_arch;
- bfd_arch_info_type *bfd_arch = &bfd_sh_arch;
+ bfd_arch_info_type const *bfd_arch = &bfd_sh_arch;
for (; bfd_arch; bfd_arch=bfd_arch->next)
if (bfd_arch->mach != bfd_mach_sh5)
{