From 871ec8960924f477379d520fd477c1958cad4e33 Mon Sep 17 00:00:00 2001 From: Joern Rennecke Date: Mon, 5 Jul 2004 13:35:44 +0000 Subject: 2004-06-30 Andrew Stubbs 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. --- gas/ChangeLog | 8 ++++++++ gas/config/tc-sh.c | 19 +++++-------------- 2 files changed, 13 insertions(+), 14 deletions(-) (limited to 'gas') 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 + + 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 * 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) { -- cgit v1.1