From ca6a899da7df8f243b6cfd54045547d3de052fac Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 14 May 1998 20:54:47 +0000 Subject: [PATCH] Change command line switch fron --enable-special to --m32rx-enable-special --- gas/ChangeLog | 11 ++++++++ gas/config/tc-m32r.c | 50 ++++++++++++++++++++-------------- gas/doc/c-m32r.texi | 9 ++++-- gas/testsuite/gas/m32r/m32rx.d | 2 +- 4 files changed, 48 insertions(+), 24 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index c5079501530..9ca75fed7bd 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,14 @@ +start-sanitize-m32rx +Thu May 14 13:49:39 1998 Nick Clifton + + * config/tc-m32r.c: Chnage command line switch from + --enable-special to --m32rx-enable-special and add shorter + synonym: --m32rx-es. + * doc/c-m32r.texi (M32R-Opts): Document changes to command line + switch. + * testsuite/gas/m32rx/m32rx.d: Change switch. + +end-sanitize-m32rx Wed May 13 10:16:37 1998 Doug Evans * config/tc-m32r.c (warn_unmatched_high): New static local. diff --git a/gas/config/tc-m32r.c b/gas/config/tc-m32r.c index 4883e051a1c..1e48e6407e0 100644 --- a/gas/config/tc-m32r.c +++ b/gas/config/tc-m32r.c @@ -36,7 +36,8 @@ typedef struct sym_link static sym_linkS *debug_sym_link = (sym_linkS *)0; -/* Structure to hold all of the different components describing an individual instruction. */ +/* Structure to hold all of the different components describing + an individual instruction. */ typedef struct { const CGEN_INSN * insn; @@ -90,7 +91,7 @@ static int warn_unmatched_high = 0; extended M32RX instruction set should be enabled. */ static int enable_m32rx = 0; -/* Non-zero if --enable-special has been specified, in which case support for +/* Non-zero if --m32rx-enable-special has been specified, in which case support for the special M32RX instruction set should be enabled. */ static int enable_special = 0; @@ -169,7 +170,8 @@ struct option md_longopts[] = {"no-warn-explicit-parallel-conflicts", no_argument, NULL, OPTION_NO_WARN_PARALLEL}, {"Wnp", no_argument, NULL, OPTION_NO_WARN_PARALLEL}, #define OPTION_SPECIAL (OPTION_MD_BASE + 3) - {"enable-special", no_argument, NULL, OPTION_SPECIAL}, + {"m32rx-enable-special", no_argument, NULL, OPTION_SPECIAL}, + {"m32rx-es", no_argument, NULL, OPTION_SPECIAL}, /* end-sanitize-m32rx */ /* Sigh. I guess all warnings must now have both variants. */ @@ -254,8 +256,9 @@ md_show_usage (stream) fprintf (stream, _("\ --m32rx support the extended m32rx instruction set\n")); fprintf (stream, _("\ ---enable-special support the special m32rx instructions\n")); - +--m32rx-enable-special support the special m32rx instructions\n")); + fprintf (stream, _("\ +--m32rx-es synonym for --m32rx-enable-special\n")); fprintf (stream, _("\ -O try to combine instructions in parallel\n")); @@ -414,6 +417,7 @@ debug_sym (ignore) symbol_table_insert (symbolP); if (S_IS_DEFINED (symbolP) && S_GET_SEGMENT (symbolP) != reg_section) + /* xgettext:c-format */ as_bad (_("symbol `%s' already defined"), S_GET_NAME (symbolP)); else @@ -458,7 +462,6 @@ expand_debug_syms (syms, align) } /* Cover function to fill_insn called after a label and at end of assembly. - The result is always 1: we're called in a conditional to see if the current line is a label. */ @@ -603,8 +606,9 @@ first_writes_to_seconds_operands (a, b, check_outputs) } else { - /* Scan operand list of 'b' looking for an operand that references - the same hardware element, and which goes in the right direction. */ + /* Scan operand list of 'b' looking for an operand that + references the same hardware element, and which goes in the + right direction. */ for (b_index = 0; CGEN_OPERAND_INSTANCE_TYPE (b_operands) != CGEN_OPERAND_INSTANCE_END; b_index ++, b_operands ++) @@ -771,6 +775,7 @@ assemble_parallel_insn (str, str2) /* Check to see if this is an allowable parallel insn. */ if (CGEN_INSN_ATTR (first.insn, CGEN_INSN_PIPE) == PIPE_NONE) { + /* xgettext:c-format */ as_bad (_("instruction '%s' cannot be executed in parallel."), str); return; } @@ -793,10 +798,9 @@ assemble_parallel_insn (str, str2) version (eg relaxability). When aliases behave differently this may have to change. */ first.orig_insn = first.insn; - first.insn = m32r_cgen_lookup_get_insn_operands (NULL, - bfd_getb16 ((char *) first.buffer), - 16, - first.indices); + first.insn = m32r_cgen_lookup_get_insn_operands + (NULL, bfd_getb16 ((char *) first.buffer), 16, first.indices); + if (first.insn == NULL) as_fatal (_("internal error: m32r_cgen_lookup_get_insn_operands failed for first insn")); @@ -829,6 +833,7 @@ assemble_parallel_insn (str, str2) /* Check to see if this is an allowable parallel insn. */ if (CGEN_INSN_ATTR (second.insn, CGEN_INSN_PIPE) == PIPE_NONE) { + /* xgettext:c-format */ as_bad (_("instruction '%s' cannot be executed in parallel."), str); return; } @@ -846,10 +851,9 @@ assemble_parallel_insn (str, str2) /* Get the indices of the operands of the instruction. */ second.orig_insn = second.insn; - second.insn = m32r_cgen_lookup_get_insn_operands (NULL, - bfd_getb16 ((char *) second.buffer), - 16, - second.indices); + second.insn = m32r_cgen_lookup_get_insn_operands + (NULL, bfd_getb16 ((char *) second.buffer), 16, second.indices); + if (second.insn == NULL) as_fatal (_("internal error: m32r_cgen_lookup_get_insn_operands failed for second insn")); @@ -949,7 +953,9 @@ md_assemble (str) insn.debug_sym_link = debug_sym_link; debug_sym_link = (sym_linkS *)0; - insn.insn = CGEN_SYM (assemble_insn) (str, & insn.fields, insn.buffer, & errmsg); + insn.insn = CGEN_SYM (assemble_insn) + (str, & insn.fields, insn.buffer, & errmsg); + if (!insn.insn) { as_bad (errmsg); @@ -1005,10 +1011,9 @@ md_assemble (str) { /* Get the indices of the operands of the instruction. FIXME: See assemble_parallel for notes on orig_insn. */ - insn.insn = m32r_cgen_lookup_get_insn_operands (NULL, - bfd_getb16 ((char *) insn.buffer), - 16, - insn.indices); + insn.insn = m32r_cgen_lookup_get_insn_operands + (NULL, bfd_getb16 ((char *) insn.buffer), 16, insn.indices); + if (insn.insn == NULL) as_fatal (_("internal error: m32r_cgen_get_insn_operands failed")); } @@ -1184,6 +1189,7 @@ m32r_scomm (ignore) input_line_pointer ++; /* skip ',' */ if ((size = get_absolute_expression ()) < 0) { + /* xgettext:c-format */ as_warn (_(".SCOMMon length (%ld.) <0! Ignored."), (long) size); ignore_rest_of_line (); return; @@ -1223,6 +1229,7 @@ m32r_scomm (ignore) if (S_IS_DEFINED (symbolP)) { + /* xgettext:c-format */ as_bad (_("Ignoring attempt to re-define symbol `%s'."), S_GET_NAME (symbolP)); ignore_rest_of_line (); @@ -1231,6 +1238,7 @@ m32r_scomm (ignore) if (S_GET_VALUE (symbolP) && S_GET_VALUE (symbolP) != (valueT) size) { + /* xgettext:c-format */ as_bad (_("Length of .scomm \"%s\" is already %ld. Not changed to %ld."), S_GET_NAME (symbolP), (long) S_GET_VALUE (symbolP), diff --git a/gas/doc/c-m32r.texi b/gas/doc/c-m32r.texi index cc834d6cdf0..a5147ac2e0c 100644 --- a/gas/doc/c-m32r.texi +++ b/gas/doc/c-m32r.texi @@ -40,13 +40,18 @@ to the M32RX microprocessor, which adds some more instructions to the basic M32R instruction set, and some additional parameters to some of the original instructions. -@item --enable-special -@cindex @samp{--enable-special} option, M32RX +@item --m32rx-enable-special +@cindex @samp{--m32rx-enable-special} option, M32RX @cindex architecture options, M32RX @cindex M32R architecture options This option is the equivalent of the @emph{--m32rx} option, except that it also allows the special M32RX instructions to be assembled as well. +@item --m32rx-es +@cindex @samp{--m32rx-es} option, M32RX +This is a shorter synonym for the @emph{--m32rx-enable-special} +option. + @item --warn-explicit-parallel-conflicts @cindex @samp{--warn-explicit-parallel-conflicts} option, M32RX Instructs @code{@value{AS}} to produce warning messages when diff --git a/gas/testsuite/gas/m32r/m32rx.d b/gas/testsuite/gas/m32r/m32rx.d index 613ea5020c9..919256c7e0d 100644 --- a/gas/testsuite/gas/m32r/m32rx.d +++ b/gas/testsuite/gas/m32r/m32rx.d @@ -1,4 +1,4 @@ -#as: -m32rx --no-warn-explicit-parallel-conflicts --enable-special +#as: -m32rx --no-warn-explicit-parallel-conflicts --m32rx-enable-special #objdump: -dr #name: m32rx -- 2.30.2