aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog8
-rw-r--r--gas/config/tc-sh.c19
2 files changed, 13 insertions, 14 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 86101d4..6c1c22f 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,11 @@
+2004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
+
+ 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.
+
2004-07-03 James E Wilson <wilson@specifixinc.com>
* config/tc-ia64.c (emit_one_bundle): Check and set insn_addr.
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)
{