From: Ian Lance Taylor Date: Tue, 1 Aug 1995 22:02:07 +0000 (+0000) Subject: * config/tc-m68k.c (init_table): Add "control", "status", "iaddr", X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=064ba683c9e92c50f3af983f447e4abbcd5d6ea1;p=binutils-gdb.git * config/tc-m68k.c (init_table): Add "control", "status", "iaddr", "sfcr", and "dfcr" as synonyms for existing entries. (md_begin): In MRI mode, force flag_reg_prefix_optional to 1. (md_parse_option): Removed unused locals i and arch. Change type of arch (another one) to unsigned long. (tc_coff_sizemachdep): Add return after abort to avoid warning. --- diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c index d0b74ff56b6..364183b685d 100644 --- a/gas/config/tc-m68k.c +++ b/gas/config/tc-m68k.c @@ -3551,6 +3551,9 @@ static const struct init_entry init_table[] = { "fpsr", FPS }, { "fpc", FPC }, { "fpcr", FPC }, + { "control", FPC }, + { "status", FPS }, + { "iaddr", FPI }, { "cop0", COP0 }, { "cop1", COP1 }, @@ -3570,7 +3573,9 @@ static const struct init_entry init_table[] = { "usp", USP }, { "isp", ISP }, { "sfc", SFC }, + { "sfcr", SFC }, { "dfc", DFC }, + { "dfcr", DFC }, { "cacr", CACR }, { "caar", CAAR }, @@ -3836,6 +3841,9 @@ md_begin () register unsigned int i; register char c; + if (flag_mri) + flag_reg_prefix_optional = 1; + op_hash = hash_new (); obstack_begin (&robyn, 4000); @@ -3931,7 +3939,7 @@ m68k_init_after_args () { if (cpu_of_arch (current_architecture) == 0) { - int cpu_type, i; + int i; const char *default_cpu = TARGET_CPU; if (*default_cpu == 'm') @@ -4402,9 +4410,9 @@ md_convert_frag_1 (fragP) #ifndef BFD_ASSEMBLER void -md_convert_frag (headers, seg, fragP) +md_convert_frag (headers, sec, fragP) object_headers *headers; - segT seg; + segT sec; fragS *fragP; { md_convert_frag_1 (fragP); @@ -5082,9 +5090,6 @@ md_parse_option (c, arg) int c; char *arg; { - int i; - unsigned long arch; - switch (c) { case 'l': /* -l means keep external to 2 bit offset @@ -5105,7 +5110,8 @@ md_parse_option (c, arg) if (arg[0] == 'n' && arg[1] == 'o' && arg[2] == '-') { - int i, arch; + int i; + unsigned long arch; const char *oarg = arg; arg += 3; @@ -5357,6 +5363,7 @@ tc_coff_sizemachdep (frag) return 4; default: abort (); + return 0; } } #endif